Skip to main content
CVE-2023-2977VulnerabilityPublished Updated

CVE-2023-2977: OpenSC · Memory Buffer Overflow

Affects OpenSCSource CVE Database V5

0

Not known to be exploited · CVSS 7.1 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Jun 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

1. Monitor OpenSC project updates and apply patches promptly once a fixed version addressing CVE-2023-2977 is released. 2. Until patches are available, restrict access to systems and applications that process smart card packages to trusted users only, minimizing the risk of local exploitation. 3. Implement strict input validation and ASN.1 parsing sanity checks at the application or middleware level to detect and reject malformed smart card packages before processing. 4. Employ runtime protections such as AddressSanitizer or similar memory safety tools during development and testing to detect and prevent exploitation attempts. 5. Harden endpoint security to prevent unauthorized local access, including enforcing least privilege principles and using endpoint detection and response (EDR) solutions. 6. Conduct regular security audits and penetration testing focused on smart card integration components to identify and remediate related vulnerabilities. 7. Educate users and administrators about the risks of handling untrusted smart card packages and enforce policies to avoid usage of unknown or suspicious cards. 8. Consider isolating smart card processing services in sandboxed or containerized environments to limit the impact of potential exploitation.

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.

References

Community reviews

Loading reviews…