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.
CVE-2023-40661
Score 5.4 from GitHub Security Advisory published 2023-11-06. NVD baseline CVSS 5.4; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.4
- EG Score
- 5.4(medium)
- EG Risk
- 29(Track)EG Risk 29/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity54% × 45%Exploitation1% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 66%
- KEV
- Not listed
Published
November 6, 2023
Last Modified
November 3, 2025
References (19)
- secalert@redhathttps://access.redhat.com/errata/RHSA-2023:7876
- secalert@redhathttps://access.redhat.com/errata/RHSA-2023:7879
- secalert@redhathttps://access.redhat.com/security/cve/CVE-2023-40661
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=2240913
- secalert@redhathttps://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
- secalert@redhathttps://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
- secalert@redhathttps://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
- af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2023/12/13/3
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2023:7876
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2023:7879
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/security/cve/CVE-2023-40661
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2240913
- af854a3a-2127-422b-91ae-364da2661108https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
- af854a3a-2127-422b-91ae-364da2661108https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
- af854a3a-2127-422b-91ae-364da2661108https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | opensc-pkcs11 (0.25.1-2ubuntu1.1) @ oracular | 2026-05-24 | ubuntu |
| ubuntu | opensc-pkcs11 (0.20.0-3ubuntu0.1~esm4) @ focal | 2026-05-24 | ubuntu |
| redhat | opensc-0:0.20.0-7.el8_9 | 2023-12-19 | redhat |
| redhat | opensc-0:0.23.0-3.el9_3 | 2023-12-19 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(5 across 5 ecosystems)
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensc | 0.19.0-1, 0.19.0-1+deb10u1, 0.19.0-1+deb10u2 | 0.19.0-1+deb10u3 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensc | 0.21.0-1 | 0.21.0-1+deb11u1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensc | 0.23.0-0.3 | 0.23.0-0.3+deb12u1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensc | — | 0.23.0-2 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| opensc | — | 0.23.0-2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(5)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2023-406612024-06-30
Opensc: multiple memory issues with pkcs15-init (enrollment tool)
- Red HatRHSA-2023:7876MODERATE2023-09-25
RHSA-2023:7876 — Moderate
- Red HatRHSA-2023:7879MODERATE2023-09-25
RHSA-2023:7879 — Moderate
- UbuntuUSN-7346-1MEDIUM
OpenSC vulnerabilities
- UbuntuUSN-7346-3MEDIUM
OpenSC vulnerabilities
Data Freshness Timeline
(refreshed 7× in last 7d / 29× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 179 total refreshes for this CVE.
- 2026-09-20 20:14 UTCEPSS rescore
- 2026-09-20 20:14 UTCEPSS rescore
- 2026-09-18 19:25 UTCEPSS rescore
- 2026-09-17 19:25 UTCEPSS rescore
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-16 05:11 UTCEPSS rescore
- 2026-09-13 16:44 UTCEPSS rescore
- 2026-09-12 14:58 UTCEPSS rescore
- 2026-09-11 14:50 UTCEPSS rescore
- 2026-09-11 09:34 UTCEPSS rescore
- 2026-09-08 21:58 UTCEPSS rescore
- 2026-09-07 15:59 UTCEPSS rescore
- 2026-09-06 13:45 UTCEPSS rescore
- 2026-09-06 13:45 UTCEPSS rescore
- 2026-09-05 15:26 UTCEPSS rescore
- 2026-09-04 13:58 UTCEPSS rescore
- 2026-09-04 05:04 UTCEPSS rescore
- 2026-09-03 13:29 UTCOSV refresh
- 2026-09-02 14:09 UTCEPSS rescore
- 2026-09-01 13:51 UTCEPSS rescore
- 2026-08-30 19:15 UTCEPSS rescore
- 2026-08-30 01:20 UTCEPSS rescore
- 2026-08-28 21:39 UTCEPSS rescore
- 2026-08-27 14:23 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-26 14:44 UTCEPSS rescore
- 2026-08-26 14:43 UTCEPSS rescore
- 2026-08-25 13:46 UTCEPSS rescore
- 2026-08-23 00:17 UTCEPSS rescore
- 2026-08-21 23:47 UTCEPSS rescore
- 2026-08-20 22:53 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-18 13:46 UTCEPSS rescore
- 2026-08-17 13:45 UTCEPSS rescore
- 2026-08-17 03:18 UTCOSV refresh
- 2026-08-16 14:54 UTCEPSS rescore
- 2026-08-16 02:12 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-13 21:58 UTCEPSS rescore
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-11 13:39 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-08 16:35 UTCEPSS rescore
- 2026-08-07 16:25 UTCEPSS rescore
- 2026-08-06 13:45 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 15:07 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-01 21:36 UTCOSV refresh
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:25 UTCEG score recompute
- 2026-07-22 23:12 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 04:49 UTCOSV refresh
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2023:7876 · ubuntu:USN-7346-1
Same CWE
10 shownCWE-119
Frequently asked(5)
What is CVE-2023-40661?
When was CVE-2023-40661 disclosed?
Is CVE-2023-40661 actively exploited?
What is the CVSS score of CVE-2023-40661?
How do I remediate CVE-2023-40661?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-40661
Is Your Infrastructure Affected by CVE-2023-40661?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.