{"id":"CVE-2026-40510","published":"2026-05-29T13:26:40Z","modified":"2026-11-08T14:02:53Z","title":"OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c","vendor":"OpenSC","product":"OpenSC","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.8,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00294,"percentile":0.22509,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/OpenSC/OpenSC/pull/3558","tags":["issue-tracking","patch"]},{"url":"https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c","tags":["third-party-advisory"]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":4.5},{"name":"CVSS severity","points":2.66}]},"vendorSlug":"opensc","affectedVersions":[{"vendor":"OpenSC","product":"OpenSC","versions":["< 0.27.0-rc1","< 3f24f0b48a481a8cf2e46059d8238a283ddc1c13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-01T13:37:05.970355Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-33315","exploited":false,"provenance":"source"}}