CVE-2023-40661Improper Restriction of Operations within the Bounds of a Memory Buffer in Project Opensc

Severity
6.4MEDIUMNVD
CNA5.4
EPSS
0.3%
top 47.16%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 6
Latest updateApr 9

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 enrol

CVSS vector

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HExploitability: 0.5 | Impact: 5.9

Affected Packages2 packages

Debianopensc_project/opensc< 0.21.0-1+deb11u1+3

Also affects: Enterprise Linux 8.0, 9.0

🔴Vulnerability Details

3
OSV
CVE-2023-40661: Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user o2023-11-06
GHSA
GHSA-2c2j-2pgv-gfgc: Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user o2023-11-06
CVEList
Opensc: multiple memory issues with pkcs15-init (enrollment tool)2023-11-06

📋Vendor Advisories

5
Ubuntu
OpenSC vulnerabilities2025-04-09
Ubuntu
OpenSC vulnerabilities2025-03-12
Microsoft
Opensc: multiple memory issues with pkcs15-init (enrollment tool)2023-11-14
Red Hat
OpenSC: multiple memory issues with pkcs15-init (enrollment tool)2023-09-25
Debian
CVE-2023-40661: opensc - Several memory vulnerabilities were identified within the OpenSC packages, parti...2023
CVE-2023-40661 — Opensc Project Opensc vulnerability | cvebase