{"id":"CVE-2025-66215","published":"2026-03-30T17:06:16Z","modified":"2026-03-31T18:53:46Z","title":"OpenSC: Stack-buffer-overflow WRITE in card-oberthur","vendor":"OpenSC","product":"OpenSC","tier":"tail","description":{"text":"OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.","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.0028,"percentile":0.13097,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/OpenSC/OpenSC/security/advisories/GHSA-q5fc-cw56-hwp2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenSC/OpenSC/pull/3436","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenSC/OpenSC/commit/efd1d479832141bcf705c2f47655ada4d5f92f5d","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenSC/OpenSC/wiki/CVE-2025-66215","tags":["x_refsource_MISC"]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":2.62},{"name":"CVSS severity","points":2.66}]},"vendorSlug":"opensc","affectedVersions":[{"vendor":"OpenSC","product":"OpenSC","versions":["< 0.27.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-31T18:50:36.530890Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-209129","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opensc-cve-2018-16426","parents":[{"from":"CVE-2018-16427","to":"CVE-2025-66215","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libopensc/card-oberthur.c"],"commits":["https://github.com/OpenSC/OpenSC/commit/8fe377e93b4b56060e5bbfb6f3142ceaeca744fa","https://github.com/OpenSC/OpenSC/commit/efd1d479832141bcf705c2f47655ada4d5f92f5d"],"basis":"shared function","functions":["sc_card"]}]}]}}