High severity · published Jun 1, 2023
CVE-2023-2977
A vulnerbility was found in OpenSC
7.1
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 22% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EL
Enterprise Linux · Redhat
8.0; 9.0 · source: NVD
OP
Opensc · Opensc Project
0.23.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-2977
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-2977
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2023-2977
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2211088
Issue Tracking
https://github.com/OpenSC/OpenSC/issues/2785
Patch
https://github.com/OpenSC/OpenSC/pull/2787
lists.debian.org
https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/
More from Opensc
7.8
CVE-2026-40528
OpenSC < 0.27.0 Buffer Overrun in do_key_value() via profile.c
7.5
CVE-2021-34193
Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs
7.5
CVE-2019-16058
An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC
7.5
CVE-2019-6502
sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv
7.5
CVE-2009-1603
src/tools/pkcs11-tool.c in pkcs11-tool in OpenSC 0.11.7, when used with unspecified third-party PKCS#11 modules, generates RSA keys with incorrect public exponents, which allows…
