CVE-2026-40510

LOW CVSS 4.0: 1.0 EPSS 0.29%
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-121 (Stack-based Buffer Overflow)
Vendor Opensc_Project
Public PoC No

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.

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