CVE-2026-40510: OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_proce
CVE-2026-40510 is a low-severity flaw (CVSS 3.8) affecting opensc. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.8 (Low) |
| Attack vector | Physical |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.3% (top 78%) |
| CISA exploited list | No |
| Weakness | CWE-121 |
| Published | 2026-05-29 |
| Last modified | 2026-07-21 |
Last updated 2026-07-21 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40510?
opensc: upgrade to 0.27.0. Exact commands for each OS are on this page.
Is CVE-2026-40510 being exploited?
CVE-2026-40510 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40510 affect?
CVE-2026-40510 affects opensc. Severity is low (CVSS 3.8). 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 cra
How urgent is CVE-2026-40510?
Priority 19/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-40528 LOW 3.8 UPGRADE OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the d