CVE-2023-40661

Opensc: multiple memory issues with pkcs15-init (enrollment tool)

State
Published
Severity
5.4 Medium
Published
Nov 6, 2023
Updated
Nov 6, 2025
Reserved
Aug 18, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.4 MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:Hredhat

Weaknesses

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

Affected Products

ProductVersions
OpenSC
  • before 0.24.0Affected
Red Hat Enterprise Linux 8Red Hat
  • 0:0.20.0-7.el8_9 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.23.0-3.el9_3 and laterNot affected
Red Hat Enterprise Linux 7Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.