{"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-08-12T03:51:23.440653776Z","published":"2023-06-01T00:00:00Z","related":["ALSA-2023:6587","ALSA-2023:7160","SUSE-SU-2023:2466-1","SUSE-SU-2023:2508-1","SUSE-SU-2023:2516-1","openSUSE-SU-2024:12968-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-119"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2977.json"},"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-2977"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2977.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2977"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088"},{"type":"REPORT","url":"https://github.com/OpenSC/OpenSC/issues/2785"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/pull/2787"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensc/opensc","events":[{"introduced":"5497519ea6b4af596628f8f8f2f904bacaa3148f"},{"last_affected":"5497519ea6b4af596628f8f8f2f904bacaa3148f"}],"database_specific":{"cpe":"cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*","extracted_events":[{"introduced":"opensc-0.23.0"},{"last_affected":"opensc-0.23.0"},{"introduced":"0.23.0-NA"},{"last_affected":"0.23.0-NA"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["0.23.0-NA","opensc-0.23.0","0.23.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2977.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}