CVE-2023-2977Improper Restriction of Operations within the Bounds of a Memory Buffer in Project Opensc

Severity
7.1HIGHNVD
EPSS
0.0%
top 93.30%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJun 1
Latest updateSep 16

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 mor

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HExploitability: 1.8 | Impact: 5.2

Affected Packages3 packages

Debianopensc_project/opensc< 0.21.0-1+deb11u1+3
CVEListV5opensc_project/openscopensc-0.23.0

Also affects: Enterprise Linux 8.0, 9.0

Patches

🔴Vulnerability Details

3
GHSA
GHSA-p22r-5f28-437x: A vulnerbility was found in OpenSC2023-06-01
OSV
CVE-2023-2977: A vulnerbility was found in OpenSC2023-06-01
CVEList
CVE-2023-2977: A vulnerbility was found in OpenSC2023-06-01

📋Vendor Advisories

6
Red Hat
kernel: net: fix net_dev_start_xmit trace event vs skb_transport_offset()2025-09-16
Ubuntu
OpenSC vulnerabilities2025-04-09
Ubuntu
OpenSC vulnerabilities2025-03-12
Microsoft
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 con2023-06-13
Red Hat
opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package2023-05-30
CVE-2023-2977 — Opensc Project Opensc vulnerability | cvebase