Opensc: multiple memory issues with pkcs15-init (enrollment tool)
Summary
| CVE | CVE-2023-40661 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-11-06 17:15:11 UTC |
| Updated | 2026-11-06 21:17:01 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.4 MEDIUM from [email protected]
CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.013180000 probability, percentile 0.710190000 (date 2026-11-08)
Problem Types: CWE-119 | CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.4 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 5.4 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| 3.1 | CNA | CVSS | 5.4 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
CVSS v3.1 Breakdown
Attack Vector
PhysicalAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Opensc Project | Opensc | All | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux | 9.0 | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:0.20.0-7.el8_9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:0.23.0-3.el9_3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2023/11/msg00024.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| www.openwall.com/lists/oss-security/2023/12/13/3 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| 2240913 – (CVE-2023-40661) CVE-2023-40661 OpenSC: multiple memory issues with pkcs15-init (enrollment tool) | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking |
| access.redhat.com/errata/RHSA-2023:7876 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| New release 0.24.0 · Issue #2792 · OpenSC/OpenSC · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | VDB Entry |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| access.redhat.com/errata/RHSA-2023:7879 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| OpenSC security advisories · OpenSC/OpenSC Wiki · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Vendor Advisory |
| Release 0.24.0-rc1 · OpenSC/OpenSC · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Release Notes |
| lists.debian.org/debian-lts-announce/2024/12/msg00026.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| cve-details | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2023-09-27T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-09-25T00:00:00.000Z | Made public. |
Legacy QID Mappings
- 161246 Oracle Enterprise Linux Security Update for opensc (ELSA-2023-7879)
- 161249 Oracle Enterprise Linux Security Update for opensc (ELSA-2023-7876)
- 242627 Red Hat Update for opensc (RHSA-2023:7879)
- 242631 Red Hat Update for opensc (RHSA-2023:7876)
- 284825 Fedora Security Update for opensc (FEDORA-2023-c7e4c9af51)
- 285094 Fedora Security Update for opensc (FEDORA-2023-a854153d7a)
- 356583 Amazon Linux Security Advisory for opensc : ALAS2-2023-2323
- 356637 Amazon Linux Security Advisory for opensc : ALAS2023-2023-417
- 379617 Alibaba Cloud Linux Security Update for opensc (ALINUX3-SA-2024:0026)
- 506145 Alpine Linux Security Update for opensc
- 6000352 Debian Security Update for opensc (DLA 3668-1)
- 755078 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4065-1)
- 755092 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4089-1)
- 755099 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4104-1)
- 941506 AlmaLinux Security Update for opensc (ALSA-2023:7876)
- 941511 AlmaLinux Security Update for opensc (ALSA-2023:7879)