{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40510","id":"CVE-2026-40510","title":"OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c","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.","descriptionLong":"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.","published":"2026-05-29T13:26:40.459Z","updated":"2026-11-09T02:47:16.213297797Z","reserved":"2026-04-13T20:29:02.809Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":1,"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","rating":"low","source":"VulnCheck"},"metrics":[{"version":"4.0","score":1,"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","rating":"low","source":"VulnCheck"},{"version":"4.0","score":1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"vulncheck.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"low","source":"VulnCheck"},{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","rating":"low","source":"vulncheck.com"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"NVD"}],"rating":"low","products":["OpenSC"],"affectedProducts":[{"vendor":"OpenSC","product":"OpenSC","defaultStatus":"affected","versions":[{"status":"affected","version":"0","versionType":"semver","lessThan":"0.27.0-rc1"},{"status":"affected","version":"0","versionType":"git","lessThan":"3f24f0b48a481a8cf2e46059d8238a283ddc1c13"}],"platforms":[]}],"packages":[],"cwes":["CWE-121"],"aliases":[],"references":[{"url":"https://github.com/OpenSC/OpenSC/pull/3558","tags":["issue-tracking","patch","Issue Tracking","Patch","fix"]},{"url":"https://github.com/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13","tags":["patch","Patch","fix"]},{"url":"https://www.vulncheck.com/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c","tags":["third-party-advisory","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40510.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40510","tags":["advisory"]},{"url":"https://github.com/OpenSC/OpenSC","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00294,"epssPercentile":0.22377,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40510","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40510","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40510","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40510","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}