Skip to main content
VulnerabilityPublished Updated

CVE-2026-40510: OpenSC · Stack-based Buffer Overflow

Affects OpenSCSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
1.0Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.01.0
CNA (VulnCheck)CVSS 3.13.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
OpenSCOpenSCAffected
  • <0.27.0-rc1
Fixed in–
GitHubOpenSCpkg:github/OpenSCOther threatsAffected
  • <0.27.0-rc1
Fixed in
  • 0.27.0-rc1

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.

References

Community reviews

Loading reviews…