CVE-2023-40660
Opensc: potential pin bypass when card tracks its own login state
Reported by redhat · Published November 6, 2023
OpenSC is fixed in 0.24.0 (GitHub Packages)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| OpenSC | GitHub Packages | 0.24.0 |
| opensc | Alpine | 0.24.0-r0 |
| opensc | Amazon Linux | 0.23.0-3.amzn2023.0.2, 0.19.0-5.amzn2.0.2 |
| opensc | opensc_project | 0.23.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0.17.0 | ||
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.20.0-7.el8_9 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.23.0-3.el9_3 |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| 0.17.0 | ||
| alpine | opensc | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:0.23.0-3.el9_3 |
| amazon:2023 | opensc | 0 |
| amazon:2 | opensc | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.20.0-7.el8_9 |
Timeline
- Sep 27, 2023 CVE Published
- Nov 7, 2023 EPSS Score (30 in total, the first dated here)
- Mar 27, 2026 Distribution Patch (5 in total, the first dated here)
- Mar 27, 2026 Security Advisory (7 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-40660
vulnetix vdb fixes CVE-2023-40660
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40660/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2023:7876 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7879 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2240912 issue-trackingx_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2023/12/13/2 url
- https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/ url
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html url