CVE-2023-40661 MEDIUM

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

Vendor Red Hat
Product Red Hat Enterprise Linux 7
Weakness CWE-119
Published November 6, 2023
Last update November 6, 2025

CVSS base score

5.4/10
Attack vector Physical
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

November 6, 2023 CVE published
November 6, 2025 Record updated