CVE-2023-40661
published medium CVSS 3.1 · 5.4Opensc: multiple memory issues with pkcs15-init (enrollment tool)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | OpenSC0 to < 0.24.0 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 8 | opensc0:0.20.0-7.el8_9 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | opensc0:0.23.0-3.el9_3 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 7 | opensc | Unknown | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2323 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-417 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | opensc | Advisory build | 0.20.0-7.el8_9 | ALSA-2023:7876 |
| Alpine Linux | edge | opensc | Fixed | 0.24.0-r0 | Package fix record |
Show 90 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | bullseye | opensc | Advisory build | 0.21.0-1+deb11u1 | DLA-4004-1 |
| Oracle Linux | 8 | openscaarch64 | Advisory build | 0:0.20.0-7.el8_9 | ELSA-2023-7876 |
| Red Hat Enterprise Linux | RHEL-8 | openscaarch64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| SUSE / openSUSE | SLE-12-SP5 | openscaarch64 | Advisory build | 0.13.0-3.25.1 | SUSE-SU-2023:4065-1 |
| Ubuntu | focal | opensc | Advisory build | 0.20.0-3ubuntu0.1~esm4 | USN-7346-3 |
| Amazon Linux | AL2 | openscaarch64 | Listed in advisory | Not stated | ALAS2-2023-2323 |
| AlmaLinux | 9 | opensc | Advisory build | 0.23.0-3.el9_3 | ALSA-2023:7879 |
| Alpine Linux | v3.19 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Alpine Linux | v3.20 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Alpine Linux | v3.21 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Alpine Linux | v3.22 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Alpine Linux | v3.23 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Alpine Linux | v3.24 | opensc | Fixed | 0.24.0-r0 | Package fix record |
| Debian | buster | opensc | Advisory build | 0.19.0-1+deb10u3 | DLA-3668-1 |
| Oracle Linux | 8 | openscx86_64 | Advisory build | 0:0.20.0-7.el8_9 | ELSA-2023-7876 |
| Oracle Linux | 9 | openscaarch64 | Advisory build | 0:0.23.0-3.el9_3 | ELSA-2023-7879 |
| Oracle Linux | 9 | openscx86_64 | Advisory build | 0:0.23.0-3.el9_3 | ELSA-2023-7879 |
| Red Hat Enterprise Linux | RHEL-8 | opensci686 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | openscppc64le | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | openscs390x | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | openscsrc | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | openscx86_64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-9 | openscaarch64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensci686 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | openscppc64le | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | openscs390x | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | openscsrc | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | openscx86_64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| SUSE / openSUSE | SLE-12-SP5 | openscppc64le | Advisory build | 0.13.0-3.25.1 | SUSE-SU-2023:4065-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscs390x | Advisory build | 0.13.0-3.25.1 | SUSE-SU-2023:4065-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscx86_64 | Advisory build | 0.13.0-3.25.1 | SUSE-SU-2023:4065-1 |
| SUSE / openSUSE | SLE-15-SP1 | openscaarch64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP1 | openscppc64le | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP1 | openscs390x | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP1 | openscx86_64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP2 | openscaarch64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP2 | openscppc64le | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP2 | openscs390x | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP2 | openscx86_64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP3 | openscaarch64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP3 | openscppc64le | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP3 | openscs390x | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP3 | openscx86_64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscaarch64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscppc64le | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscs390x | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscx86_64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscaarch64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscppc64le | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscs390x | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscx86_64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.22.0-150400.3.6.1 | SUSE-SU-2023:4089-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscaarch64 | Advisory build | 0.23.0-3.1 | OPENSUSE-SU-2024:13314-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscppc64le | Advisory build | 0.23.0-3.1 | OPENSUSE-SU-2024:13314-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscs390x | Advisory build | 0.23.0-3.1 | OPENSUSE-SU-2024:13314-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscx86_64 | Advisory build | 0.23.0-3.1 | OPENSUSE-SU-2024:13314-1 |
| Ubuntu | jammy | opensc | Advisory build | 0.22.0-1ubuntu2+esm1 | USN-7346-1 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoaarch64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoi686 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoppc64le | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfos390x | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfox86_64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourceaarch64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourcei686 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourceppc64le | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsources390x | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourcex86_64 | Advisory build | 0.20.0-7.el8_9 | RHSA-2023:7876 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoaarch64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoi686 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoppc64le | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfos390x | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfox86_64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourceaarch64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourcei686 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourceppc64le | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsources390x | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourcex86_64 | Advisory build | 0.23.0-3.el9_3 | RHSA-2023:7879 |
| Ubuntu | focal | opensc-pkcs11 | Advisory build | 0.20.0-3ubuntu0.1~esm4 | USN-7346-3 |
| Ubuntu | jammy | opensc-pkcs11 | Advisory build | 0.22.0-1ubuntu2+esm1 | USN-7346-1 |
| Amazon Linux | AL2 | opensci686 | Listed in advisory | Not stated | ALAS2-2023-2323 |
| Amazon Linux | AL2 | openscsrc | Listed in advisory | Not stated | ALAS2-2023-2323 |
| Amazon Linux | AL2 | openscx86_64 | Listed in advisory | Not stated | ALAS2-2023-2323 |
| Amazon Linux | AL2023 | openscaarch64 | Listed in advisory | Not stated | ALAS2023-2023-417 |
| Amazon Linux | AL2023 | openscsrc | Listed in advisory | Not stated | ALAS2023-2023-417 |
| Amazon Linux | AL2023 | openscx86_64 | Listed in advisory | Not stated | ALAS2023-2023-417 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | 0 to < 0.24.0 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.20.0-7.el8_9 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.23.0-3.el9_3 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unknown | redhat · cna |
Weaknesses
1- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
12- http://www.openwall.com/lists/oss-security/2023/12/13/3
- RHSA-2023:7876 https://access.redhat.com/errata/RHSA-2023:7876
- RHSA-2023:7879 https://access.redhat.com/errata/RHSA-2023:7879
- https://access.redhat.com/security/cve/CVE-2023-40661
- RHBZ#2240913 https://bugzilla.redhat.com/show_bug.cgi?id=2240913
- https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651
- https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1
- https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories
- https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/
Provider assertions
2redhat · cna
Opensc: multiple memory issues with pkcs15-init (enrollment tool)
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 39ce5a6882269bbb4720f963b5ac461816a8438d85ee2e00c756b0a3c15c7b03
- Ingested
- 07 Nov 2026, 23:11:14 UTC
- Source record
- Official CVE record