Memory corruption in OpenSC
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | OpenSC | opensc-0.23.0 | — | No fix listed | CNA |
- OpenSC Vendor— Affected opensc-0.23.0 Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2023:7160 Released 2023-11-14 · Red Hat rating Lowopensc 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 Lowopensc 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 →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No 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
- 2026-10-02 Threatist record created from CVE-2023-2977
- 2026-10-03 Alias added: GHSA-p22r-5f28-437x
References
Advisory 4
Sources
- CVE-2023-2977 · CVE Program
- CVE-2023-2977 · NVD
- FIRST EPSS
- GHSA-p22r-5f28-437x · GitHub Advisory Database · CC BY 4.0
- CVE-2023-2977 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences