{"id":"CVE-2023-2977","aliases":["CVE-2023-2977"],"related":[],"kind":"vulnerability","state":"published","title":"A vulnerbility was found in OpenSC.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-06-01T00:00:00.000Z","modified":"2026-06-17T05:53:55.687Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-119","CWE-125"],"affected":[{"ranges":[{"version":"opensc-0.23.0","status":"affected"}],"product":"OpenSC","source":"cvelist"},{"ranges":[{"status":"affected","version":"0.23.0"}],"vendor":"opensc_project","product":"opensc","cpe":"cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2023-2977","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088","tags":["issue-tracking","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenSC/OpenSC/issues/2785","tags":["issue-tracking","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenSC/OpenSC/pull/2787","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-09T17:54:22.560Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-2977","url":"https://www.cve.org/CVERecord?id=CVE-2023-2977","licence":"CVE Terms of Use","modified":"2025-11-03T21:47:59.585Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-2977","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2977","licence":"Public domain","modified":"2026-06-17T05:53:55.687Z"}],"updatedAt":"2026-11-25T22:58:24.507Z","epss":{"score":0.00293,"percentile":0.23548,"date":"2026-12-02T12:00:21.000Z"}}