Vulnerability · Published Nov 6, 2023 · Assigned by redhat

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

Medium 6.6

In plain English

A medium-severity improper authentication in OpenSC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.6Medium
Exploit odds (30 days)1.0%top 35.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8opensc0.20.0-7.el8_9ALSA-2023:7876
AlmaLinux:9opensc0.23.0-3.el9_3ALSA-2023:7879
Alpine:v3.20opensc0.24.0-r0ALPINE-CVE-2023-40660
Alpine:v3.21opensc0.24.0-r0ALPINE-CVE-2023-40660
Alpine:v3.22opensc0.24.0-r0ALPINE-CVE-2023-40660
Alpine:v3.23opensc0.24.0-r0ALPINE-CVE-2023-40660
Alpine:v3.24opensc0.24.0-r0ALPINE-CVE-2023-40660
Debian:12opensc0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40660
Debian:13opensc0.23.0-2DEBIAN-CVE-2023-40660
Debian:14opensc0.23.0-2DEBIAN-CVE-2023-40660

Affected products (as reported)

VendorProductVersions
OpenSC 0.17.0 – before 0.24.0
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 7 see references

Weakness: CWE-287 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References