CVEfocus › CVE database › CVE-2023-2977

CVE-2023-2977

CVSS 7.1 HighEPSS 0.4% (higher than 22% of CVEs)Published 2023-06-01Updated 2025-11-03Assigner: redhat

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.

CWE-119

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
5Fix pending
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04openscNot affected
vulnerable_code_not_present
Ubuntu 25.10openscNot affected
vulnerable_code_not_present
Ubuntu 22.04openscFix pending0.22.0-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-2977
Ubuntu 20.04openscFix pending0.20.0-3ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2023-2977
Ubuntu 18.04openscFix pending0.17.0-3ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2023-2977
Ubuntu 16.04openscFix pending0.15.0-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2023-2977
Ubuntu 14.04openscFix pending
Debian 14openscFixed0.23.0-0.3DEBIAN-CVE-2023-2977
Debian 13openscFixed0.23.0-0.3DEBIAN-CVE-2023-2977
Debian 12openscFixed0.23.0-0.3DEBIAN-CVE-2023-2977
Red Hat Enterprise Linux 9openscFixed0:0.23.0-2.el9RHSA-2023:6587
Red Hat Enterprise Linux 8openscFixed0:0.20.0-6.el8RHSA-2023:7160
Red Hat Enterprise Linux 7openscWill not fix
Out of support scope
AlmaLinux 9openscFixed0.23.0-2.el9ALSA-2023:6587
AlmaLinux 8openscFixed0.20.0-6.el8ALSA-2023:7160

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.