Read the docs
TI-2023-02789 Aliases CVE-2023-2977GHSA-p22r-5f28-437x

Memory corruption in OpenSC

Priority LOW 31CWE-119Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · High
Fix status
Partial Red Hat: 2 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00293 22nd percentileScored 2026-11-07
Fix Partial Red Hat: 2 advisoriesRed Hat: 2 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—OpenSCopensc-0.23.0—No fix listedCNA
  • OpenSC Vendor— Affected opensc-0.23.0 Fixed in — No fix listed CNA

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*0.23.0VulnerableOpenSC
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*9.0VulnerableRed Hat
  • cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:* Versions 0.23.0 Vulnerable ·OpenSC
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Red Hat

Remediation

Red Hat 2 advisories

  • RHSA-2023:7160 Released 2023-11-14 · Red Hat rating Low
    opensc security and bug fix update
    • Red Hat Enterprise Linux BaseOS (v. 8) opensc-0.20.0-6.el8
  • RHSA-2023:6587 Released 2023-11-07 · Red Hat rating Low
    opensc security update
    • Red Hat Enterprise Linux BaseOS (v. 9) opensc-0.23.0-2.el9

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2023:7160
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2023:6587

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-2977
  2. 2026-10-03 Alias added: GHSA-p22r-5f28-437x

References

Sources