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

- Severity: Medium 6.6 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 64% of CVEs (2026-12-01)
- Published: 2023-11-06T16:58:42.939Z
- Modified: 2026-11-06T21:17:01.757Z
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- OpenSC: from 0.17.0 before 0.24.0 (not affected: from 0:0.20.0-7.el8_9 before *; from 0:0.23.0-3.el9_3 before *)
- opensc_project opensc: up to 0.23.0
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2023:7876> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7879> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-40660> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2240912> (issue-tracking)
- <https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651> (issue-tracking)
- <https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1> (release-notes)
- <https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories> (vendor-advisory)
- <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>

## Sources

- CVE List: [CVE-2023-40660](https://www.cve.org/CVERecord?id=CVE-2023-40660), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2023-40660](https://nvd.nist.gov/vuln/detail/CVE-2023-40660), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2023-40660 · Whole record: https://cve.day/CVE-2023-40660.json · Rebuilt by cve.day 2026-11-25T22:58:30.077Z
