CVE-2023-40661Opensc: multiple memory issues with pkcs15-init (enrollment tool)
- 5.4MediumCVSS base score
- 1.3%Exploitation in 30 daysEPSS · top 29% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| NVDNVD · Modified | 3.1 | Medium6.4 | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.3% · top 29% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
OpenSC
- affected < 0.24.0
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:0.20.0-7.el8_9 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.23.0-3.el9_3 – < *
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
References
References12
- RHSA-2023:7876 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2023:7879 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://access.redhat.com/security/cve/CVE-2023-40661 (opens in a new tab)vdb-entryx_refsource_REDHATx_transferred
- RHBZ#2240913 (opens in a new tab)issue-trackingx_refsource_REDHATx_transferred
- https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651 (opens in a new tab)x_transferred
- https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1 (opens in a new tab)x_transferred
- https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/12/13/3 (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/ (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-45217 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-40661)Record last updated .