CVEfocus › CVE database › CVE-2023-40660

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

CVSS 6.6 MediumEPSS 0.7% (higher than 48% of CVEs)Published 2023-11-06Updated 2026-11-06Assigner: redhat

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.

CWE-287

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
4Fix pending
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04openscNot affected
vulnerable_code_not_present
Ubuntu 25.10openscNot affected
vulnerable_code_not_present
Ubuntu 22.04openscFix pending0.22.0-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-40660
Ubuntu 20.04openscFix pending0.20.0-3ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2023-40660
Ubuntu 16.04openscFix pending
Ubuntu 14.04openscFix pending
Debian 14openscFixed0.23.0-2DEBIAN-CVE-2023-40660
Debian 13openscFixed0.23.0-2DEBIAN-CVE-2023-40660
Debian 12openscFixed0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40660
Red Hat Enterprise Linux 9openscFixed0:0.23.0-3.el9_3RHSA-2023:7879
Red Hat Enterprise Linux 8openscFixed0:0.20.0-7.el8_9RHSA-2023:7876
Red Hat Enterprise Linux 7openscWill not fix
Out of support scope
AlmaLinux 9openscFixed0.23.0-3.el9_3ALSA-2023:7879
AlmaLinux 8openscFixed0.20.0-7.el8_9ALSA-2023:7876
Alpine Linux 3.24openscFixed0.24.0-r0ALPINE-CVE-2023-40660
Alpine Linux 3.23openscFixed0.24.0-r0ALPINE-CVE-2023-40660
Alpine Linux 3.22openscFixed0.24.0-r0ALPINE-CVE-2023-40660
Alpine Linux 3.21openscFixed0.24.0-r0ALPINE-CVE-2023-40660
Alpine Linux 3.20openscFixed0.24.0-r0ALPINE-CVE-2023-40660
Alpine Linux 3.19openscFixed0.24.0-r0ALPINE-CVE-2023-40660

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.