Read the docs
TI-2023-21453 Aliases CVE-2023-40660GHSA-7635-x5f9-5458

Opensc: potential pin bypass when card tracks its own login state

Priority LOW 33CWE-287Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01038 64th percentileScored 2026-11-07
Fix Partial OpenSC: 0.24.0Red Hat: 2 advisoriesRed Hat: 2 fixed, 1 without a fix

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

VendorProductAffected versionsFixed inStatusSource
—OpenSC0.17.0 to before 0.24.00.24.0Patch availableCNA
Red HatRed Hat Enterprise Linux 8—0.20.0-7.el8_9Patch availableCNA
Red HatRed Hat Enterprise Linux 9—0.23.0-3.el9_3Patch availableCNA
Red HatRed Hat Enterprise Linux 7——No fix listedCNA
  • 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

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*up to 0.23.0VulnerableOpenSC
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*9.0VulnerableRed Hat
  • cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:* Versions up to 0.23.0 Vulnerable ·OpenSC
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Red Hat

Remediation

  • Fix · CNA OpenSC Fixed in 0.24.0

Red Hat 2 advisories

  • RHSA-2023:7876 Released 2023-12-19 · Red Hat rating Moderate
    opensc 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 Moderate
    opensc 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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 7AffectedNo 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

  1. 2026-10-02 Threatist record created from CVE-2023-40660
  2. 2026-10-03 Alias added: GHSA-7635-x5f9-5458

References

  • 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
See all 1955 →

Sources