CVE & CISA-KEV Catalog

CVE-2023-40661

MEDIUM
5.4
CVSS v3
NVD

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.

How to fix

Remediation Available
openscDebian
Fixed in:0.21.0-1+deb11u1CVE-2023-40661
Fixed in:0.23.0-0.3+deb12u1CVE-2023-40661
Fixed in:0.23.0-2CVE-2023-40661
Fixed in:0.23.0-2CVE-2023-40661
openscRed Hat / RHEL
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
openscRocky
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
opensc-debuginfoRocky
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
opensc-debuginfoRed Hat / RHEL
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
opensc-debugsourceRed Hat / RHEL
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
opensc-debugsourceRocky
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.20.0-7.el8_9RHSA-2023:7876
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
Fixed in:0:0.23.0-3.el9_3RHSA-2023:7879
openscUbuntu
Fixed in:0.15.0-1ubuntu1+esm2USN-7346-1
Fixed in:0.17.0-3ubuntu0.1~esm2USN-7346-1
Fixed in:0.20.0-3ubuntu0.1~esm2USN-7346-1
Fixed in:0.20.0-3ubuntu0.1~esm4USN-7346-3
Fixed in:0.22.0-1ubuntu2+esm1USN-7346-1
Fixed in:0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1
opensc-pkcs11Ubuntu
Fixed in:0.15.0-1ubuntu1+esm2USN-7346-1
Fixed in:0.17.0-3ubuntu0.1~esm2USN-7346-1
Fixed in:0.20.0-3ubuntu0.1~esm2USN-7346-1
Fixed in:0.20.0-3ubuntu0.1~esm4USN-7346-3
Fixed in:0.22.0-1ubuntu2+esm1USN-7346-1
Fixed in:0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorPhysical
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityHigh

CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

Exploit Intelligence

1.17%probability of exploitation in 30 days
64thpercentile

Moderate risk: more likely to be exploited than 64% of all known CVEs.

References

Related Vulnerabilities

Other CWE-119 (Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-4966Critical9.4100%KEV + RansomFix
CVE-2017-11882High7.8100%KEV + Ransom-
CVE-2020-0796Critical10.0100%KEV + Ransom-
CVE-2008-4250Critical9.899%KEV-
CVE-2017-15944Critical9.898%KEVFix
CVE-2015-0014High10.097%--
Embed a live status badge for CVE-2023-40661
CVE-2023-40661 severity badge

Markdown

[![CVE-2023-40661](https://tridentstack.com/cve/badge/CVE-2023-40661.svg)](https://tridentstack.com/cve/CVE-2023-40661)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-40661"><img src="https://tridentstack.com/cve/badge/CVE-2023-40661.svg" alt="CVE-2023-40661"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.