{"id":"CVE-2023-2977","details":"A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.","modified":"2026-04-02T08:54:19.125154Z","published":"2023-06-01T01:15:17.917Z","related":["ALSA-2023:6587","ALSA-2023:7160","MGASA-2023-0222","SUSE-SU-2023:2466-1","SUSE-SU-2023:2508-1","SUSE-SU-2023:2516-1","openSUSE-SU-2024:12968-1"],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-2977"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/pull/2787"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/issues/2785"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensc/opensc","events":[{"introduced":"0"},{"last_affected":"5497519ea6b4af596628f8f8f2f904bacaa3148f"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"0.23.0-NA"}]}}],"versions":["0.12.2","0.12.2-rc1","0.13.0","0.13.0pre1","0.13.0rc1","0.14.0","0.14.0rc2","0.14.0rtm","0.15.0","0.16.0","0.16.0-rc1","0.16.0-rc2","0.17.0","0.17.0-rc1","0.17.0-rc2","0.18.0","0.18.0-rc1","0.18.0-rc2","0.19.0","0.19.0-rc1","0.20.0","0.20.0-rc1","0.20.0-rc2","0.20.0-rc3","0.20.0-rc4","0.21.0","0.21.0-rc1","0.21.0-rc2","0.22.0","0.22.0-rc1","0.22.0-rc2","0.23.0","0.23.0-rc1","0.23.0-rc2","v0.12.2","v0.15.0-pre1","v0.15.0-pre2","v0.15.0-pre3","v0.15.0-rtm","v0.16.0-pre1"],"database_specific":{"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2977.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}