CVE-2026-40510CWE-121

OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c

Low · published May 29, 2026

CVSS v4.0
1.0
EPSS
0%
Percentile
16.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
1.0 · LOW
Vector
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
EPSS
0.00254 · 16.1th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2026-05-29T13:26Z
EPSS history
Timeline
  • 29 MAY 13:26Z
    OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
    cvelistv5