CVE-2026-40528
OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c
CVSS Score
3.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-121 CWE-122 |
| Vendor | opensc |
| Product | opensc |
| Published | May 29, 2026 |
| Last Updated | May 29, 2026 |
Stay Ahead of the Next One
Get instant alerts for opensc opensc
Be the first to know when new low vulnerabilities affecting opensc opensc are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L Attack Vector
Physical
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
Affected Versions
OpenSC / OpenSC
0 < 0.27.0 0 < 0358817ec74aeca654f83e7709c7720b14c5db59
References
Credits
Nicholas Carlini of Anthropic