CVE-2026-40528
Last modified
CVE-2026-40528 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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-40528?
How severe is CVE-2026-40528?
How do I fix CVE-2026-40528?
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-40521FrontAccounting before 2.4.20 contains a path traversal vuln…8.8
- CVE-2026-40522FrontAccounting before 2.4.20 contains a SQL injection vulne…7.1
- CVE-2026-40523FrontAccounting before 2.4.20 contains a SQL injection vulne…8.1
- CVE-2026-40524FrontAccounting before 2.4.20 contains a SQL injection vulne…8.1
- CVE-2026-40525OpenViking prior to version 0.3.9 contains an authentication…9.1
- CVE-2026-40527radare2 prior to commit bc5a890 contains a command injection…8.5
- CVE-2026-40529CMS ALAYA provided by KANATA Limited contains an SQL injecti…5.1
- CVE-2026-4053Mattermost versions 11.5.x <= 11.5.1, 10.11.x <= 10.11.13 fa…4.3
- CVE-2026-4054Mattermost versions 11.5.x <= 11.5.1, 10.11.x <= 10.11.13, 1…6.5
- CVE-2026-40542Missing critical step in authentication in Apache HttpClient…7.3
- CVE-2026-40543SOPlanning does not enforce authorization for backup functio…8.8
- CVE-2026-40544SOPlanning is vulnerable to Stored Cross-Site Scripting (XSS…5.1
Are you affected by CVE-2026-40528?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
