CVE-2026-40510: opensc_project opensc Stack-based Buffer Overflow
Vulnerability summary
CVE-2026-40510 is a medium (CVSS 6.8) Stack-based Buffer Overflow vulnerability in opensc_project opensc. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 15.9% of scored vulnerabilities.
Timeline
- 29-05-2026PublishedVulnerability first disclosed.
- 14-07-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.25%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
-0.04 pp
From 0.29% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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