CVE-2026-40510: OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
Vulnerability summary
CVE-2026-40510 is a medium (CVSS 6.8) Stack-based Buffer Overflow vulnerability in opensc_project opensc. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23.6% of scored vulnerabilities.
Not severe (CVSS 1, physical access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Timeline
- 29-05-2026PublishedVulnerability first disclosed.
- 08-11-2026Last modifiedVulnerability information updated.
Description
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 metrics
4 scores · 2 sources · 2 versions- NVDNIST1.0LowCVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVE.orgCNA3.8LowCVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: physical access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse10 products
- opensc&distro=SUSE Linux Enterprise Micro 5.3< 0.22.0-150400.3.20.1
- opensc&distro=SUSE Linux Enterprise Micro 5.4< 0.22.0-150400.3.20.1
- opensc&distro=SUSE Linux Enterprise Micro 5.5< 0.22.0-150400.3.20.1
- opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7< 0.22.0-150600.11.14.1
- opensc&distro=SUSE Linux Enterprise Server 16.0< 0.26.1-160000.4.1
Opensc1 product
- opensc< 0.27.0-rc1 | < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13
Opensc_project1 product
- opensc< 0.27.0
Opensuse1 product
- opensc&distro=openSUSE Leap 16.0< 0.26.1-160000.4.1
4 vendors · 13 products