CVEfocus › CVE database › CVE-2023-40661

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

CVSS 5.4 MediumEPSS 0.8% (higher than 54% of CVEs)Published 2023-11-06Updated 2026-11-06Assigner: redhat

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.

CWE-119

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
4Fix pending
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04openscNot affected
vulnerable_code_not_present
Ubuntu 25.10openscNot affected
vulnerable_code_not_present
Ubuntu 22.04openscFix pending0.22.0-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-40661
Ubuntu 20.04openscFix pending0.20.0-3ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2023-40661
Ubuntu 16.04openscFix pending
Ubuntu 14.04openscFix pending
Debian 14openscFixed0.23.0-2DEBIAN-CVE-2023-40661
Debian 13openscFixed0.23.0-2DEBIAN-CVE-2023-40661
Debian 12openscFixed0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40661
Red Hat Enterprise Linux 9openscFixed0:0.23.0-3.el9_3RHSA-2023:7879
Red Hat Enterprise Linux 8openscFixed0:0.20.0-7.el8_9RHSA-2023:7876
Red Hat Enterprise Linux 7openscWill not fix
Out of support scope
AlmaLinux 9openscFixed0.23.0-3.el9_3ALSA-2023:7879
AlmaLinux 8openscFixed0.20.0-7.el8_9ALSA-2023:7876
Alpine Linux 3.24openscFixed0.24.0-r0ALPINE-CVE-2023-40661
Alpine Linux 3.23openscFixed0.24.0-r0ALPINE-CVE-2023-40661
Alpine Linux 3.22openscFixed0.24.0-r0ALPINE-CVE-2023-40661
Alpine Linux 3.21openscFixed0.24.0-r0ALPINE-CVE-2023-40661
Alpine Linux 3.20openscFixed0.24.0-r0ALPINE-CVE-2023-40661
Alpine Linux 3.19openscFixed0.24.0-r0ALPINE-CVE-2023-40661

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.