CVE-2023-40661

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.4 MEDIUM
PHYSICAL
LOW
NONE
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 64%
Affected Products (NVD)
VendorProductVersion
opensc_projectopensc
𝑥
≤ 0.23.0
redhatenterprise_linux
8.0
redhatenterprise_linux
9.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
opensc
bookworm
0.23.0-0.3+deb12u1
fixed
bullseye
vulnerable
bullseye (security)
0.21.0-1+deb11u1
fixed
sid
0.26.0-1
fixed
trixie
0.26.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
opensc
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
lunar
ignored
mantic
ignored
noble
needs-triage
oracular
needs-triage
trusty
ignored
xenial
needs-triage
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
opensc
RHEL 9
0:0.23.0-3.el9_3
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
opensc
Amazon Linux 2
0:0.19.0-5.amzn2.0.2
fixed
Amazon Linux 2023
0:0.23.0-3.amzn2023.0.2
fixed
opensc-debuginfo
Amazon Linux 2
0:0.19.0-5.amzn2.0.2
fixed
Amazon Linux 2023
0:0.23.0-3.amzn2023.0.2
fixed
opensc-debugsource
Amazon Linux 2023
0:0.23.0-3.amzn2023.0.2
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
opensc
Azure Linux 3.0
0:0.25.1-3.azl3
fixed
CBL-Mariner 2.0
0:0.23.0-5.cm2
fixed