CVE-2026-40510: low-severity vulnerability in OpenSC
OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
8Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 1epss 0.3%
OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_process_history() in src/libopensc/card-piv.c that allows physically present attackers to trigger memory corruption by presenting a crafted PIV smart card or USB device returning a URL field longer than 118 bytes in the Key History Object ASN.1 response.
CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Affected products
OpenSC · OpenSCRelated CVEs — OpenSC
In the same product, most dangerous first.
CVE-2025-66038LOWOpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointersEPSS 0.3%CVE-2025-13763MEDIUMLibopensc: opensc: multiple uses of uninitialized variableEPSS 0.3%CVE-2025-66037LOWOpenSC: Out of Bounds vulnerabilityEPSS 0.3%CVE-2026-40528LOWOpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.cEPSS 0.2%CVE-2025-66215LOWOpenSC: Stack-buffer-overflow WRITE in card-oberthurEPSS 0.2%CVE-2025-49010LOWOpenSC: Stack-buffer-overflow WRITE in GET RESPONSEEPSS 0.1%