Vulnerability 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 Score
LOW
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Opensc Project | Opensc | < 0.27.0 |
Related Weaknesses (CWE)
References
- https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13Patch
- https://github.com/OpenSC/OpenSC/pull/3558Issue TrackingPatch
- https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-procesThird Party Advisory
FAQ
What is CVE-2026-40510?
CVE-2026-40510 is a vulnerability with a CVSS score of 3.8 (LOW). 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 trigg...
How severe is CVE-2026-40510?
CVE-2026-40510 has been rated LOW with a CVSS base score of 3.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-40510?
Check the references section above for vendor advisories and patch information. Affected products include: Opensc Project Opensc.