# CVE-2023-2977

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-06-01 · Modified: 2025-11-03
- Aliases: MGASA-2023-0222, SUSE-SU-2023:2466-1, SUSE-SU-2023:2508-1, SUSE-SU-2023:2516-1, RHSA-2023:6587, RHSA-2023:7160, UBUNTU-CVE-2023-2977, DEBIAN-CVE-2023-2977, openSUSE-SU-2024:12968-1
- Record: https://cvemate.com/vulnerability/CVE-2023-2977 · JSON: https://cvemate.com/vulnerability/CVE-2023-2977/json

## Description

```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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.293%, percentile 23.527%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 21)

- debian opensc (Debian): \< 0.23.0-0.3
- ubuntu opensc (Ubuntu): \< 0.15.0-1ubuntu1+esm2 \| \< 0.17.0-3ubuntu0.1~esm2 \| \< 0.20.0-3ubuntu0.1~esm4 \| \< 0.22.0-1ubuntu2+esm1
- mageia opensc (Mageia): \< 0.22.0-1.1.mga8
- opensc\_project opensc: 0.23.0
- redhat enterprise\_linux: 8.0 \| 9.0
- opensuse opensc&distro=openSUSE Leap 15.4 (openSUSE): \< 0.22.0-150400.3.3.1
- opensuse opensc&distro=openSUSE Leap 15.5 (openSUSE): \< 0.22.0-150400.3.3.1
- opensuse opensc&distro=openSUSE Leap Micro 5.3 (openSUSE): \< 0.22.0-150400.3.3.1
- opensuse opensc&distro=openSUSE Tumbleweed (openSUSE): \< 0.23.0-2.1
- redhat opensc (Red Hat): \< 0:0.23.0-2.el9 \| \< 0:0.20.0-6.el8
- redhat opensc-debuginfo (Red Hat): \< 0:0.23.0-2.el9 \| \< 0:0.20.0-6.el8
- redhat opensc-debugsource (Red Hat): \< 0:0.23.0-2.el9 \| \< 0:0.20.0-6.el8
- suse opensc&distro=SUSE Linux Enterprise Micro 5.1 (SUSE Linux Enterprise): \< 0.19.0-150100.3.22.1
- suse opensc&distro=SUSE Linux Enterprise Micro 5.2 (SUSE Linux Enterprise): \< 0.19.0-150100.3.22.1
- suse opensc&distro=SUSE Linux Enterprise Micro 5.3 (SUSE Linux Enterprise): \< 0.22.0-150400.3.3.1
- suse opensc&distro=SUSE Linux Enterprise Micro 5.4 (SUSE Linux Enterprise): \< 0.22.0-150400.3.3.1
- suse opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4 (SUSE Linux Enterprise): \< 0.22.0-150400.3.3.1
- suse opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP5 (SUSE Linux Enterprise): \< 0.22.0-150400.3.3.1
- suse opensc&distro=SUSE Linux Enterprise Real Time 15 SP3 (SUSE Linux Enterprise): \< 0.19.0-150100.3.22.1
- suse opensc&distro=SUSE Linux Enterprise Server 12 SP5 (SUSE Linux Enterprise): \< 0.13.0-3.22.1

## References (first 20 of 31)

- <https://access.redhat.com/security/cve/CVE-2023-2977>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2211088>
- <https://github.com/OpenSC/OpenSC/issues/2785>
- <https://github.com/OpenSC/OpenSC/pull/2787>
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/>
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>
- <https://advisories.mageia.org/MGASA-2023-0222.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32036>
- <https://www.debian.org/lts/security/2023/dla-3463>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232466-1/>
- <https://bugzilla.suse.com/1211894>
- <https://www.suse.com/security/cve/CVE-2023-2977>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232508-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232516-1/>
- <https://access.redhat.com/errata/RHSA-2023:6587>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.3_release_notes/index>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_6587.json>

---

Data as of 2026-12-05T13:33:40.068Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
