CVE-2023-2977 json
A vulnerbility was found in OpenSC.
published 2023-06-01 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-34418
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
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.
Patch / fix
- opensc Debian 14, Debian 13, Debian 12 0.23.0-0.3
debian advisories DEBIAN-CVE-2023-2977
- opensc Ubuntu Pro 16.04 LTS 0.15.0-1ubuntu1+esm2
- opensc Ubuntu Pro 18.04 LTS 0.17.0-3ubuntu0.1~esm2
- opensc Ubuntu Pro 20.04 LTS 0.20.0-3ubuntu0.1~esm4
- opensc Ubuntu Pro 22.04 LTS 0.22.0-1ubuntu2+esm1
ubuntu advisories UBUNTU-CVE-2023-2977
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- opensc RHEL 8 0.20.0-6.el8
- opensc RHEL 9 0.23.0-2.el9
red hat advisories RHSA-2023:7160RHSA-2023:6587
- opensc SLE Module for Basesystem 15 SP5, SLE Module for Basesystem 15 SP4, SLE Micro 5.4 +4 more 0.22.0-150400.3.3.1
- opensc SLE Real Time 15 SP3, SLE Micro 5.2, SLE Micro 5.1 0.19.0-150100.3.22.1
- opensc SLES for SAP 12 SP5, SLES 12 SP5 0.13.0-3.22.1
suse advisories SUSE-SU-2023:2516-1SUSE-SU-2023:2508-1SUSE-SU-2023:2466-1
- opensc openSUSE Tumbleweed 0.23.0-2.1
opensuse advisories openSUSE-SU-2024:12968-1
- opensc AlmaLinux 8 0.20.0-6.el8
- opensc AlmaLinux 9 0.23.0-2.el9
almalinux advisories ALSA-2023:7160ALSA-2023:6587
- opensc CBL-Mariner 2.0, Azure Linux 3.0 0.22.0-3
azure linux advisories AZL-27012AZL-35073
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/OpenSC/OpenSC/issues/2785 patch
- github.com/OpenSC/OpenSC#2787 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-2977 updated cvss 6.3
opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package
-
Red Hat Enterprise Linux 7 openscaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux BaseOS (v. 8) opensc 0.20.0-6.el8fixed: vendor fix RHSA-2023:7160
-
Red Hat Enterprise Linux BaseOS (v. 9) opensc 0.23.0-2.el9fixed: vendor fix RHSA-2023:6587
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 21 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- n/a OpenSC
Classification
References
-
github.com
/OpenSC/OpenSC/pull/2787
patch
-
github.com
/OpenSC/OpenSC/issues/2785
issue-tracking, patch
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2023-2977
third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2211088
issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/06/msg00025.html
mailing-list
- lists.debian.org /debian-lts-announce/2024/12/msg00026.html
Sources
- CVE List CVE-2023-2977
- NVD CVE-2023-2977
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.