Buffer overflow in Opensc Project
CVE-2023-2977
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS: 0.003 (21.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 22nd percentile — 21.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: 0.000
Affected products
- Opensc Project — versions 0.23.0
- Red Hat Enterprise Linux — versions 8.0, 9.0
- Opensc — versions opensc-0.23.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- access.redhat.com/security/cve/CVE-2023-2977 (Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- github.com/OpenSC/OpenSC/issues/2785 (Patch, Issue Tracking)
- github.com/OpenSC/OpenSC/pull/2787 (Patch)
- lists.debian.org/debian-lts-announce/2023/06/msg00025.html (mailing-list)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2023-2977?
- CVE-2023-2977 is a high-severity vulnerability in Opensc Project, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 7.1/10. Published 2023-06-01.
- How severe is CVE-2023-2977?
- High severity. CVSS v3 base score is 7.1 out of 10.
- Is CVE-2023-2977 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.