CVE-2023-40661: opensc_project opensc
Vulnerability summary
CVE-2023-40661 is a medium (CVSS 6.4) vulnerability in opensc_project opensc. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 70.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 10 · Related 6Timeline
- 06-11-2023PublishedVulnerability first disclosed.
- 06-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA5.4MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.32%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
+0.14 pp
From 1.17% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- opensc< 0.23.0-0.3+deb12u1 | < 0.23.0-2
Opensc_project1 product
- opensc≤ 0.23.0
Redhat1 product
- enterprise_linux8.0 | 9.0
Ubuntu1 product
- opensc< 0.20.0-3ubuntu0.1~esm4 | < 0.22.0-1ubuntu2+esm1
4 vendors · 4 products
References
19 links- github.com/OpenSC/OpenSC/issues/2792VDB Entry
- github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1Release Notes
- github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisoriesVendor Advisory
- www.openwall.com/lists/oss-security/2023/12/13/3X Transferred
- lists.fedoraproject.org/archives/…X Transferred
Show all 19 references
- lists.fedoraproject.org/archives/…X Transferred