Opensc: potential pin bypass when card tracks its own login state
Key facts
- Attack vector
- Physical
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-287.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | OpenSC | 0.17.0 to before 0.24.0 | 0.24.0 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 0.20.0-7.el8_9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.23.0-3.el9_3 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
- OpenSC Vendor— Affected 0.17.0 to before 0.24.0 Fixed in 0.24.0 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 0.20.0-7.el8_9 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.23.0-3.el9_3 Patch available CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
Remediation
- Fix · CNA OpenSC Fixed in 0.24.0
Red Hat 2 advisories
- RHSA-2023:7876 Released 2023-12-19 · Red Hat rating Moderateopensc security update
- Red Hat Enterprise Linux BaseOS (v. 8) opensc-0.20.0-7.el8_9
- RHSA-2023:7879 Released 2023-12-19 · Red Hat rating Moderateopensc security update
- Red Hat Enterprise Linux BaseOS (v. 9) opensc-0.23.0-3.el9_3
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 — RHSA-2023:7879
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2023-21454 Opensc: multiple memory issues with pkcs15-init (enrollment tool)Priority LOW 31
- TI-2023-04181 Opensc: out-of-bounds read in myeid driver handling encryption using symmetric keysPriority LOW 21
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 — RHSA-2023:7876
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2023-21454 Opensc: multiple memory issues with pkcs15-init (enrollment tool)Priority LOW 31
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2023:7876 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2023:7879 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-40660
- 2026-10-03 Alias added: GHSA-7635-x5f9-5458
References
More Red Hat Enterprise Linux vulnerabilities
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2018-10530 Code injection in [UNKNOWN] RichFaces KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 GNU Bash through 4.3 processes trailing strings after function definitions in the values… KEVCVSS 3.1CRITICAL 9.8
- TI-2025-23530 Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf… KEVCVSS 3.1CRITICAL 9.3
- TI-2021-17490 mod_proxy SSRF KEVCVSS 3.1CRITICAL 9.0
Sources
- CVE-2023-40660 · CVE Program
- CVE-2023-40660 · NVD
- FIRST EPSS
- GHSA-7635-x5f9-5458 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-40660 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences