CVE-2026-40510
JSON

1.0low

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

Severity
1.0low CVSS:4.0 by VulnCheck
Exploit likelihood
0.25% (higher than 10% of CVEs)
Published
Last changed
Assigned by
VulnCheck

Description

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.

Affected

Product or packageVersionsReported by
OpenSC OpenSCbefore 0.27.0-rc1, before 3f24f0b48a481a8cf2e46059d8238a283ddc1c13CVE List
opensc_project openscbefore 0.27.0NVD

All scores

VulnCheck1.0low CVSS:4.0CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
VulnCheck3.8low CVSS:3.1CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD6.8medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-121

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

OpenSC antes de 0.27.0-rc1, corregido en el commit 3f24f0b, contiene una vulnerabilidad de desbordamiento de búfer de pila en piv_process_history() en src/libopensc/card-piv.c que permite a atacantes físicamente presentes desencadenar corrupción de memoria al presentar una tarjeta inteligente PIV o dispositivo USB manipulado que devuelve un campo URL de más de 118 bytes en la respuesta ASN.1 del Objeto de Historial de Claves.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40510 changed 2026-11-08CVE Terms of Use
NVDCVE-2026-40510 changed 2026-07-21Public domain