CVE-2023-40660
published medium CVSS 3.1 · 6.6Opensc: potential pin bypass when card tracks its own login state
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | OpenSC0.17.0 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 86 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-15-SP1 | openscaarch64 | Advisory build | 0.19.0-150100.3.25.1 | SUSE-SU-2023:4104-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-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
A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.
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
- 6.6 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | 0.17.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-287 Improper Authentication
References
12- http://www.openwall.com/lists/oss-security/2023/12/13/2
- 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-40660
- RHBZ#2240912 https://bugzilla.redhat.com/show_bug.cgi?id=2240912
- 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
3redhat · cna
Opensc: potential pin bypass when card tracks its own login state
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 47163ae443900aa71075ec50416d13644d18559e22b5087842f6ef61c97ad4f5
- Ingested
- 07 Nov 2026, 23:11:14 UTC
- Source record
- Official CVE record