cve.bz

CVE-2023-2977 Out-of-bounds Read

7.1 highEPSS 0.3%Fix available

High (7.1). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-2977 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-2977?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-2977?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-2977 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opensc_project:opensc0.23.0
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10opensc0.19.0-1+deb10u2DLA-3463-1
Debian11opensc0.21.0-1+deb11u1DLA-4004-1
Debian12, 13, 14opensc0.23.0-0.3DEBIAN-CVE-2023-2977
UbuntuPro:16.04:LTSopensc0.15.0-1ubuntu1+esm2UBUNTU-CVE-2023-2977 USN-7346-1
UbuntuPro:18.04:LTSopensc0.17.0-3ubuntu0.1~esm2UBUNTU-CVE-2023-2977 USN-7346-1
UbuntuPro:20.04:LTSopensc0.20.0-3ubuntu0.1~esm4UBUNTU-CVE-2023-2977 USN-7346-1 USN-7346-3
UbuntuPro:22.04:LTSopensc0.22.0-1ubuntu2+esm1UBUNTU-CVE-2023-2977 USN-7346-1
UbuntuPro:24.04:LTSopensc0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1
Red Hatenterprise_linux:8::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.20.0-6.el8RHSA-2023:7160
Red Hatenterprise_linux:9::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.23.0-2.el9RHSA-2023:6587
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Real Time 15 SP3opensc0.19.0-150100.3.22.1SUSE-SU-2023:2508-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4 and 1 moreopensc0.22.0-150400.3.3.1SUSE-SU-2023:2516-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5opensc0.13.0-3.22.1SUSE-SU-2023:2466-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3opensc0.22.0-150400.3.3.1SUSE-SU-2023:2516-1
openSUSETumbleweedopensc0.23.0-2.1openSUSE-SU-2024:12968-1
AlmaLinux8opensc0.20.0-6.el8ALSA-2023:7160
AlmaLinux9opensc0.23.0-2.el9ALSA-2023:6587
Azure Linux2opensc0.22.0-3AZL-27012
Azure Linux3opensc0.22.0-3AZL-35073
Alpaquita23opensc0.22.0-r5BELL-CVE-2023-2977
Alpaquitastreamopensc0.24.0-r0BELL-CVE-2023-2977

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8opensc-0:0.20.0-6.el8Fixed 2023-11-14RHSA-2023:7160
Red Hat Enterprise Linux 9opensc-0:0.23.0-2.el9Fixed 2023-11-07RHSA-2023:6587
Red Hat Enterprise Linux 7openscOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-2977.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON