CVE-2026-40510
Last modified
CVE-2026-40510 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. 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.. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Opensc Project | Opensc | < 0.27.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40510?
How severe is CVE-2026-40510?
How do I fix CVE-2026-40510?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40505MuPDF before 1.27 contains an ANSI injection vulnerability i…4.8
- CVE-2026-40506OpenEMR before 8.2.0 contains a path traversal vulnerability…6.5
- CVE-2026-40507OpenEMR before 8.3.0 contains a reflected cross-site scripti…6.1
- CVE-2026-40508OpenEMR before 8.3.0 contains a stored cross-site scripting …5.4
- CVE-2026-40509OpenEMR before 8.3.0 contains a cross-site request forgery v…4.3
- CVE-2026-4051IBM Engineering Lifecycle Management 7.0.3, 7.1.0, and 7.2.0…7.2
- CVE-2026-40512Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40514SmarterTools SmarterMail builds prior to 9610 contain a cryp…9.1
- CVE-2026-40515OpenHarness before commit bd4df81 contains a permission bypa…5.5
- CVE-2026-40516OpenHarness before commit bd4df81 contains a server-side req…6.3
- CVE-2026-40517radare2 prior to 6.1.4 contains a command injection vulnerab…8.4
- CVE-2026-40518ByteDance DeerFlow before commit 2176b2b contains a path tra…9.1
Are you affected by CVE-2026-40510?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
