OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with '=' followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.
CVE-2026-40528
Score 3.8 from GitHub Security Advisory (severity: LOW) published 2026-05-29. NVD baseline CVSS 7.8; sources differ by 4.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 3.8(medium)
- EPSS
- 4.3%
- KEV
- Not listed
Published
May 29, 2026
Last Modified
July 14, 2026
Advisory Details (2)
Auto-updated Jun 10, 2026OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c | Advisories | VulnCheck
https://www.vulncheck.com/advisories/opensc-buffer-overrun-in-do-key-value-via-profile-ccommit 0358817ec74a (OpenSC/OpenSC)
Fix landed in OpenSC/OpenSC commit 0358817ec74a — awaiting tagged release
https://github.com/OpenSC/OpenSC/commit/0358817ec74aeca654f83e7709c7720b14c5db59Vendor Advisories for CVE-2026-40528(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 15× in last 7d / 48× 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 → 7.8 · severity → HIGH
- 2026-07-14 20:30 UTCMITRE cvelistV5CVSS v3 → 3.8 · severity → LOW
- 2026-07-14 17:02 UTCEG score recompute
- 2026-07-14 17:02 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-12 05:46 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:28 UTCEG score recompute
- 2026-07-08 17:28 UTCGHSA enrichment
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 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
- 2026-07-01 01:39 UTCEG score recompute
Show 64 moreShow fewer
- 2026-07-01 01:39 UTCGHSA enrichment
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 13:18 UTCEG score recompute
- 2026-06-27 13:18 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 22:33 UTCEG score recompute
- 2026-06-18 22:33 UTCGHSA enrichment
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 23:53 UTCEG score recompute
- 2026-06-15 23:53 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 02:12 UTCEG score recompute
- 2026-06-13 02:12 UTCGHSA enrichment
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 04:31 UTCEG score recompute
- 2026-06-10 04:30 UTCGHSA enrichment
- 2026-06-08 23:31 UTCNVD updateCVSS v3 → 7.8 · severity → HIGH
- 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 06:49 UTCEG score recompute
- 2026-06-07 06:49 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 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 09:08 UTCEG score recompute
- 2026-06-04 09:08 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 11:27 UTCEG score recompute
- 2026-06-01 11:27 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 · CWE-122
Frequently asked(5)
What is CVE-2026-40528?
When was CVE-2026-40528 disclosed?
Is CVE-2026-40528 actively exploited?
What is the CVSS score of CVE-2026-40528?
How do I remediate CVE-2026-40528?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40528
Is Your Infrastructure Affected by CVE-2026-40528?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.