# CVE-2023-2977: A vulnerbility was found in OpenSC.

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-02)
- Published: 2023-06-01T00:00:00.000Z
- Modified: 2026-06-17T05:53:55.687Z
- Weaknesses: CWE-119, CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- OpenSC: opensc-0.23.0
- opensc_project opensc: 0.23.0
- redhat enterprise_linux: 8.0; 9.0

## Every score

- CISA-ADP: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2023-2977> (third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2211088> (issue-tracking, third-party-advisory)
- <https://github.com/OpenSC/OpenSC/issues/2785> (issue-tracking, patch)
- <https://github.com/OpenSC/OpenSC/pull/2787> (patch)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>

## Sources

- CVE List: [CVE-2023-2977](https://www.cve.org/CVERecord?id=CVE-2023-2977), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2023-2977](https://nvd.nist.gov/vuln/detail/CVE-2023-2977), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-2977 · Whole record: https://cve.day/CVE-2023-2977.json · Rebuilt by cve.day 2026-11-25T22:58:24.507Z
