CVE-2023-40661

published 6 Nov 2023 · updated 6 Nov 2026

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

5.4MediumCVSS 5.4EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.24.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
OpenSC projectopensc<=0.23.0
Red HatEnterprise Linux
redhatenterprise_linux=9.0, =8.0
<0.24.00.24.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-40661 severity on Zeptric[![CVE-2023-40661](https://zeptric.io/badge/cve/CVE-2023-40661.svg)](https://zeptric.io/cve/CVE-2023-40661)