CVE-2026-40528

LOW CVSS 4.0: 1.0 EPSS 0.19%
Updated Jul 21, 2026
Opensc_Project
Parameter Value
CVSS 1.0 (LOW)
Affected Versions before 0.27.0
Fixed In 0.27.0
Type CWE-122 (Heap-based Buffer Overflow), CWE-121 (Stack-based Buffer Overflow)
Vendor Opensc_Project
Public PoC No

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.

Attack Parameters

Attack Vector
Physical
Requires physical access
Attack Complexity
High
Difficult to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Opensc_Project Opensc
cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*
— 0.27.0