CVE-2026-40510: OpenSC · Stack-based Buffer Overflow
Affects OpenSCSource CVE Database V5
Not known to be exploited · CVSS 1.0 Low : upgrade to 0.27.0-rc1 when convenient.
Data as of 8 Nov 2026, 14:19 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 1.0 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 3.8 |
- CISA SSVC
- Exploitation
- No evidence of active exploitation and no public proof of concept
- Automatable
- Attackers cannot reliably automate steps 1–4 of the kill chain
- Technical impact
- Limited control over the software or limited information exposure
CISA SSVC assessment, 2026-06-01.
- Patch
- Available – fixed in 0.27.0-rc1
CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 8 Nov 2026.
What to do
Upgrade OpenSC to 0.27.0-rc1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| OpenSCOpenSC | Affected
| Fixed in– |
GitHubOpenSCpkg:github/OpenSCOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.