CVE-2023-40660: Opensc: potential pin bypass when card tracks its own login state
Vulnerability summary
CVE-2023-40660 is a medium (CVSS 6.6) Improper Authentication vulnerability in opensc_project opensc. EPSS estimates a 1.04% chance of exploitation in the next 30 days, higher than 65% of scored vulnerabilities.
Not severe (CVSS 6.6, physical access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 5Timeline
- 06-11-2023PublishedVulnerability first disclosed.
- 06-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.6MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated6.6MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST6.6MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated6.6MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.04%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.04% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: physical access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- opensc< 0.24.0-r0
Debian1 product
- opensc< 0.23.0-0.3+deb12u1 | < 0.23.0-2
Opensc_project1 product
- opensc≤ 0.23.0
Redhat1 product
- enterprise_linux8.0 | 9.0
Ubuntu1 product
- opensc< 0.20.0-3ubuntu0.1~esm4 | < 0.22.0-1ubuntu2+esm1
5 vendors · 5 products
References
19 links- github.com/OpenSC/OpenSC/issues/2792Issue Tracking
- github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1Release Notes
- github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisoriesVendor Advisory
- www.openwall.com/lists/oss-security/2023/12/13/2X Transferred
- lists.fedoraproject.org/archives/…X Transferred
Show all 19 references
- lists.fedoraproject.org/archives/…X Transferred