{"id":"OESA-2026-5237","summary":"opensc security update","details":"OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures. OpenSC implements the standard APIs to smart cards, e.g. PKCS#11 API, Windows’ Smart Card Minidriver and macOS Tokend.\r\n\r\nSecurity Fix(es):\n\nOpenSC 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.(CVE-2025-66215)\n\nOpenSC 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.(CVE-2026-40510)\n\nOpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with &apos;=&apos; followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.(CVE-2026-40528)","modified":"2026-12-01T05:45:14.957776431Z","published":"2026-11-26T12:14:12Z","upstream":["CVE-2025-66215","CVE-2026-40510","CVE-2026-40528"],"database_specific":{"severity":"Low"},"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-5237"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66215"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40510"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40528"}],"affected":[{"package":{"name":"opensc","ecosystem":"openEuler:24.03-LTS-SP3","purl":"pkg:rpm/openEuler/opensc&distro=openEuler-24.03-LTS-SP3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.23.0-11.oe2403sp3"}]}],"ecosystem_specific":{"aarch64":["opensc-0.23.0-11.oe2403sp3.aarch64.rpm","opensc-debuginfo-0.23.0-11.oe2403sp3.aarch64.rpm","opensc-debugsource-0.23.0-11.oe2403sp3.aarch64.rpm","opensc-help-0.23.0-11.oe2403sp3.aarch64.rpm"],"src":["opensc-0.23.0-11.oe2403sp3.src.rpm"],"x86_64":["opensc-0.23.0-11.oe2403sp3.x86_64.rpm","opensc-debuginfo-0.23.0-11.oe2403sp3.x86_64.rpm","opensc-debugsource-0.23.0-11.oe2403sp3.x86_64.rpm","opensc-help-0.23.0-11.oe2403sp3.x86_64.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2026-5237.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}