CVE-2023-40661

5.4 MEDIUM
Published: November 06, 2023 Modified: November 03, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://access.redhat.com/security/cve/CVE-2023-40661
Source: secalert@redhat.com
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2240913
Source: secalert@redhat.com
Issue Tracking
https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
Source: secalert@redhat.com
Release Notes
https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
Source: secalert@redhat.com
Vendor Advisory
http://www.openwall.com/lists/oss-security/2023/12/13/3
Source: af854a3a-2127-422b-91ae-364da2661108
https://access.redhat.com/errata/RHSA-2023:7876
Source: af854a3a-2127-422b-91ae-364da2661108
https://access.redhat.com/errata/RHSA-2023:7879
Source: af854a3a-2127-422b-91ae-364da2661108
https://access.redhat.com/security/cve/CVE-2023-40661
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2240913
Source: af854a3a-2127-422b-91ae-364da2661108
Issue Tracking
https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
Source: af854a3a-2127-422b-91ae-364da2661108
VDB Entry
https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
Source: af854a3a-2127-422b-91ae-364da2661108
Release Notes
https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory

19 reference(s) from NVD

Quick Stats

CVSS v3 Score
5.4 / 10.0
EPSS (Exploit Probability)
0.3%
55th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

redhat opensc_project