CVE-2023-2977

7.1 HIGH
Published: June 01, 2023 Modified: November 03, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://access.redhat.com/security/cve/CVE-2023-2977
Source: secalert@redhat.com
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2211088
Source: secalert@redhat.com
Issue Tracking Third Party Advisory
https://github.com/OpenSC/OpenSC/issues/2785
Source: secalert@redhat.com
Issue Tracking Patch
https://github.com/OpenSC/OpenSC/pull/2787
Source: secalert@redhat.com
Patch
https://access.redhat.com/security/cve/CVE-2023-2977
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2211088
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Third Party Advisory
https://github.com/OpenSC/OpenSC/issues/2785
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking Patch
https://github.com/OpenSC/OpenSC/pull/2787
Source: af854a3a-2127-422b-91ae-364da2661108
Patch

15 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.1 / 10.0
EPSS (Exploit Probability)
0.0%
6th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

redhat opensc_project