Skip to main content
CVE-2023-40661VulnerabilityPublished Updated

CVE-2023-40661: OpenSC · Memory Buffer Overflow

Affects OpenSCSource CVE Database V5

0

Not known to be exploited · CVSS 5.4 Medium.

Data as of 26 Oct 2026, 06:26 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Nov 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-26.

What to do

Affected software

ProductAffectedFixed in
GitHubopensc/OpenSCpkg:github/opensc/OpenSCOther threatsAffected
  • =0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2023-40661, European organizations should implement strict physical security controls to prevent unauthorized access to systems handling smart card enrollment. This includes securing workstations, using locked rooms or cabinets, and monitoring access logs. Organizations should validate the authenticity of USB devices and smart cards before enrollment, potentially using hardware-based device attestation or whitelisting known devices. Applying vendor patches or updates for OpenSC as soon as they become available is critical. Until patches are deployed, consider disabling or restricting the use of pkcs15-init enrollment processes or isolating enrollment systems from general network access. Employ endpoint security solutions capable of detecting anomalous USB device behavior. Additionally, conduct regular audits of cryptographic key and certificate integrity post-enrollment to detect any unauthorized changes. Training staff on the risks of physical device manipulation and enforcing strict enrollment procedures will further reduce risk.

Description

Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls cards. To take advantage of these flaws, an attacker must have physical access to the computer system and employ a custom-crafted USB device or smart card to manipulate responses to APDUs. This manipulation can potentially allow compromise key generation, certificate loading, and other card management operations during enrollment.

References

Community reviews

Loading reviews…