{"id":"CVE-2026-40510","aliases":["CVE-2026-40510"],"related":[],"kind":"vulnerability","state":"published","title":"OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-29T13:26:40.459Z","modified":"2026-11-08T14:02:53.357Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":1,"rating":"LOW"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":1,"rating":"LOW"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","score":3.8,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.27.0-rc1","status":"affected"},{"type":"git","introduced":"0","fixed":"3f24f0b48a481a8cf2e46059d8238a283ddc1c13","status":"affected"}],"vendor":"OpenSC","product":"OpenSC","repo":"https://github.com/OpenSC/OpenSC","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.27.0"}],"vendor":"opensc_project","product":"opensc","cpe":"cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenSC/OpenSC/pull/3558","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Nicholas Carlini of Anthropic"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-01T13:37:05.970Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40510","url":"https://www.cve.org/CVERecord?id=CVE-2026-40510","licence":"CVE Terms of Use","modified":"2026-11-08T14:02:53.357Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40510","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40510","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.311Z","epss":{"score":0.00254,"percentile":0.10367,"date":"2026-11-30T12:00:22.000Z"}}