# CVE-2023-40660: Opensc: potential pin bypass when card tracks its own login state

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, physical access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-11-06 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2023-40660, DEBIAN-CVE-2023-40660, ALPINE-CVE-2023-40660
- Record: https://cvemate.com/vulnerability/CVE-2023-40660 · JSON: https://cvemate.com/vulnerability/CVE-2023-40660/json

## Description

```text
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.
```

## Signals

- CVSS: 6.6 medium (v3.1, CVE.org) CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.038%, percentile 65.059%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine opensc (Alpine Linux): \< 0.24.0-r0
- debian opensc (Debian): \< 0.23.0-0.3+deb12u1 \| \< 0.23.0-2
- ubuntu opensc (Ubuntu): \< 0.20.0-3ubuntu0.1~esm4 \| \< 0.22.0-1ubuntu2+esm1
- opensc\_project opensc: ≤ 0.23.0
- redhat enterprise\_linux: 8.0 \| 9.0

## References

- <https://access.redhat.com/errata/RHSA-2023:7876>
- <https://access.redhat.com/errata/RHSA-2023:7879>
- <https://access.redhat.com/security/cve/CVE-2023-40660>
- <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>
- <http://www.openwall.com/lists/oss-security/2023/12/13/2>
- <https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/>
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html>
- <https://ubuntu.com/security/CVE-2023-40660>
- <https://www.cve.org/CVERecord?id=CVE-2023-40660>
- <https://ubuntu.com/security/notices/USN-7346-1>
- <https://ubuntu.com/security/notices/USN-7346-3>
- <https://security-tracker.debian.org/tracker/CVE-2023-40660>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40660>
- <https://security.alpinelinux.org/vuln/CVE-2023-40660>

---

Data as of 2026-12-05T13:42:41.857Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
