Vulnerability · Published Nov 6, 2023 · Assigned by redhat

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

Medium 5.4

In plain English

A medium-severity memory corruption in OpenSC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.3%top 29.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8opensc0.20.0-7.el8_9ALSA-2023:7876
AlmaLinux:9opensc0.23.0-3.el9_3ALSA-2023:7879
Alpine:v3.20opensc0.24.0-r0ALPINE-CVE-2023-40661
Alpine:v3.21opensc0.24.0-r0ALPINE-CVE-2023-40661
Alpine:v3.22opensc0.24.0-r0ALPINE-CVE-2023-40661
Alpine:v3.23opensc0.24.0-r0ALPINE-CVE-2023-40661
Alpine:v3.24opensc0.24.0-r0ALPINE-CVE-2023-40661
Debian:12opensc0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40661
Debian:13opensc0.23.0-2DEBIAN-CVE-2023-40661
Debian:14opensc0.23.0-2DEBIAN-CVE-2023-40661

Affected products (as reported)

VendorProductVersions
OpenSC 0 – before 0.24.0
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 7 see references

Weakness: CWE-119 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

References