CVE-2026-40510

CVE-2026-40510 is a low-severity vulnerability in Opensc Project Opensc with a CVSS 3.x base score of 3.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-121.

Key facts

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.

Frequently asked questions

What is 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.
How severe is CVE-2026-40510?
CVE-2026-40510 has a CVSS 3.x base score of 3.8, rated low severity. It is exploitable over physical access with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability low.
Is CVE-2026-40510 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (12th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-40510?
CVE-2026-40510 affects Opensc Project Opensc. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-40510?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2026-40510 have an EU (EUVD) identifier?
Yes. CVE-2026-40510 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-33315.
When was CVE-2026-40510 published?
CVE-2026-40510 was published on 2026-05-29 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Opensc Project Opensc

All CVEs affecting Opensc Project Opensc →

Other CWE-121 (Stack-based Buffer Overflow) vulnerabilities

Browse all CWE-121 (Stack-based Buffer Overflow) vulnerabilities →