cve.bz

CVE-2023-40661

6.4 mediumEPSS 1.3%Fix available

Medium (6.4). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40661 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40661?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40661?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40661 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:0.20.0-7.el8_9
Red Hat Enterprise Linux 90:0.23.0-3.el9_3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10opensc0.19.0-1+deb10u3DLA-3668-1
Debian11opensc0.21.0-1+deb11u1DLA-4004-1
Debian12opensc0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40661
Debian13, 14opensc0.23.0-2DEBIAN-CVE-2023-40661
UbuntuPro:16.04:LTSopensc0.15.0-1ubuntu1+esm2USN-7346-1
UbuntuPro:18.04:LTSopensc0.17.0-3ubuntu0.1~esm2USN-7346-1
UbuntuPro:20.04:LTSopensc0.20.0-3ubuntu0.1~esm4UBUNTU-CVE-2023-40661 USN-7346-1 USN-7346-3
UbuntuPro:22.04:LTSopensc0.22.0-1ubuntu2+esm1UBUNTU-CVE-2023-40661 USN-7346-1
UbuntuPro:24.04:LTSopensc0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1
Red Hatenterprise_linux:8::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.20.0-7.el8_9RHSA-2023:7876
Red Hatenterprise_linux:9::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.23.0-3.el9_3RHSA-2023:7879
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreopensc0.19.0-150100.3.25.1SUSE-SU-2023:4104-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 2 moreopensc0.22.0-150400.3.6.1SUSE-SU-2023:4089-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5opensc0.13.0-3.25.1SUSE-SU-2023:4065-1
openSUSETumbleweedopensc0.23.0-3.1openSUSE-SU-2024:13314-1
AlmaLinux8opensc0.20.0-7.el8_9ALSA-2023:7876
AlmaLinux9opensc0.23.0-3.el9_3ALSA-2023:7879
Alpinev3.19, v3.20, v3.21 and 3 moreopensc0.24.0-r0ALPINE-CVE-2023-40661
Azure Linux2opensc0.23.0-5AZL-31944
Azure Linux3opensc0.25.1-3AZL-35075

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8opensc-0:0.20.0-7.el8_9Fixed 2023-12-19RHSA-2023:7876
Red Hat Enterprise Linux 9opensc-0:0.23.0-3.el9_3Fixed 2023-12-19RHSA-2023:7879
Red Hat Enterprise Linux 7openscOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40661.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON