Buffer overflow in Opensc
CVE-2026-40510
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.8 (Low). Vector: CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.003 (22.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 22nd percentile — 22.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Opensc — versions 0
- Opensc Project
Weakness classification (CWE)
References
- github.com/OpenSC/OpenSC/pull/3558 (issue-tracking, Patch, Issue Tracking)
- github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13 (Patch, patch)
- www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-histo… (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-40510?
- CVE-2026-40510 is a low-severity vulnerability in Opensc, classified under Stack-based Buffer Overflow. CVSS score: 3.8/10. Published 2026-05-29.
- How severe is CVE-2026-40510?
- Low severity. CVSS v3 base score is 3.8 out of 10.