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.
CVE-2026-40510
Score 3.8 from GitHub Security Advisory (severity: LOW) published 2026-05-29. NVD baseline CVSS 6.8; sources differ by 3.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.8
- EG Score
- 3.8(medium)
- EPSS
- 12.0%
- KEV
- Not listed
Published
May 29, 2026
Last Modified
July 14, 2026
Advisory Details (3)
Auto-updated Jun 13, 2026OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c | Advisories | VulnCheck
https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-ccard-piv.c - fix history object
Fix merged in OpenSC/OpenSC PR #3558 on 2026-01-26 — awaiting tagged release
https://github.com/OpenSC/OpenSC/pull/3558commit 3f24f0b48a48 (OpenSC/OpenSC)
Fix landed in OpenSC/OpenSC commit 3f24f0b48a48 — awaiting tagged release
https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13Vendor Advisories for CVE-2026-40510(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 14× in last 7d / 51× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 21:22 UTCNVD updateCVSS v3 → 6.8 · severity → MEDIUM
- 2026-07-14 20:30 UTCMITRE cvelistV5CVSS v3 → 3.8 · severity → LOW
- 2026-07-14 17:09 UTCEG score recompute
- 2026-07-14 17:09 UTCGHSA enrichment
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-11 17:39 UTCEG score recompute
- 2026-07-11 17:39 UTCGHSA enrichment
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 17:29 UTCEG score recompute
- 2026-07-08 17:29 UTCGHSA enrichment
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
Show 61 moreShow fewer
- 2026-07-01 01:40 UTCEG score recompute
- 2026-07-01 01:40 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 15:06 UTCEG score recompute
- 2026-06-27 15:06 UTCGHSA enrichment
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 15:37 UTCEG score recompute
- 2026-06-24 15:37 UTCGHSA enrichment
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 11:04 UTCEG score recompute
- 2026-06-16 11:04 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 11:35 UTCEG score recompute
- 2026-06-13 11:35 UTCGHSA enrichment
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 11:41 UTCEG score recompute
- 2026-06-10 11:41 UTCGHSA enrichment
- 2026-06-08 23:31 UTCNVD updateCVSS v3 → 6.8 · severity → MEDIUM
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 12:12 UTCEG score recompute
- 2026-06-07 12:12 UTCGHSA enrichment
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 12:43 UTCEG score recompute
- 2026-06-04 12:43 UTCGHSA enrichment
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:14 UTCEG score recompute
- 2026-06-01 13:14 UTCGHSA enrichment
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:45 UTCEG score recompute
Related CVEs(same CWE)
Same CWE
10 shownCWE-121
- CVE-2012-10058EG 10.0CRITICAL
- CVE-2010-20113EG 9.8CRITICAL
- CVE-2010-20121EG 9.8CRITICAL
- CVE-2012-10060EG 9.8CRITICAL
- CVE-2012-10023EG 9.8CRITICAL
- CVE-2013-10042EG 9.8CRITICAL
- CVE-2012-10021EG 9.8CRITICAL
- CVE-2014-125117EG 9.8EPSS 91%CRITICAL
- CVE-2017-14854NVD 9.1EG 9.8EPSS 94%CRITICAL
- CVE-2015-1006EG 9.8EPSS 92%CRITICAL
Frequently asked(5)
What is CVE-2026-40510?
When was CVE-2026-40510 disclosed?
Is CVE-2026-40510 actively exploited?
What is the CVSS score of CVE-2026-40510?
How do I remediate CVE-2026-40510?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40510
Is Your Infrastructure Affected by CVE-2026-40510?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.