CVE-2023-2977

HIGH
Published Jun 1, 20233y ago · Modified Jun 17, 20261w ago
7.1 CVSS 3.1
High
Find Similar
Published Jun 1, 2023 3y ago
Last Modified Jun 17, 2026 1w ago

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 Details

Base Score
7.1
Exploitability
1.8
Impact
5.2
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer Memory Safety
CWE-125 Out-of-bounds Read Memory Safety

Affected Products 3

VendorProductVersionRange
opensc_projectopensc0.23.0any
redhatenterprise_linux8.0any
redhatenterprise_linux9.0any

References 8

  • access.redhat.com https://access.redhat.com/security/cve/CVE-2023-2977
    Third Party Advisory
  • bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2211088
    Issue TrackingThird Party Advisory
  • github.com https://github.com/OpenSC/OpenSC/issues/2785
    Issue TrackingPatch
  • github.com https://github.com/OpenSC/OpenSC/pull/2787
    Patch
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
  • lists.debian.org https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/

Remediation

  • github.com https://github.com/OpenSC/OpenSC/issues/2785
    Issue TrackingPatch
  • github.com https://github.com/OpenSC/OpenSC/pull/2787
    Patch