{"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-05-15T11:53:25.474248607Z","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":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2977.json","cwe_ids":["CWE-119"],"cna_assigner":"redhat"},"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"}],"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"}]}