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 package | Versions | Reported by |
|---|---|---|
| OpenSC OpenSC | before 0.27.0-rc1, before 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 | CVE List |
| opensc_project opensc | before 0.27.0 | NVD |
All scores
| VulnCheck | 1.0low CVSS:4.0 | 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 |
| VulnCheck | 3.8low CVSS:3.1 | CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40510 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-40510 changed 2026-07-21 | Public domain |