Skip to content
Fencer Vulns
medium 6.6

CVE-2023-40660 json

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

published 2023-11-06 3 y ago modified 2026-11-06 2 d ago also EUVD-2023-45216

cvss
6.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

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.

Patch / fix

  • Red Hat Red Hat Enterprise Linux 8 0:0.20.0-7.el8_9
  • Red Hat Red Hat Enterprise Linux 9 0:0.23.0-3.el9_3
  • opensc Debian 12 0.23.0-0.3+deb12u1
  • opensc Debian 14, Debian 13 0.23.0-2

debian advisories DEBIAN-CVE-2023-40660

  • opensc Ubuntu Pro 20.04 LTS 0.20.0-3ubuntu0.1~esm4
  • opensc Ubuntu Pro 22.04 LTS 0.22.0-1ubuntu2+esm1

ubuntu advisories UBUNTU-CVE-2023-40660

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • opensc RHEL 9 0.23.0-3.el9_3
  • opensc RHEL 8 0.20.0-7.el8_9

red hat advisories RHSA-2023:7879RHSA-2023:7876

  • opensc SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +12 more 0.19.0-150100.3.25.1
  • opensc SLE Module for Basesystem 15 SP5, SLE Module for Basesystem 15 SP4, SLE Micro 5.5 +2 more 0.22.0-150400.3.6.1

suse advisories SUSE-SU-2023:4104-1SUSE-SU-2023:4089-1

  • opensc openSUSE Tumbleweed 0.23.0-3.1

opensuse advisories openSUSE-SU-2024:13314-1

  • opensc AlmaLinux 8 0.20.0-7.el8_9
  • opensc AlmaLinux 9 0.23.0-3.el9_3

almalinux advisories ALSA-2023:7876ALSA-2023:7879

  • opensc Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 0.24.0-r0

alpine advisories ALPINE-CVE-2023-40660

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • opensc CBL-Mariner 2.0 0.23.0-4
  • opensc Azure Linux 3.0 0.25.1-3

azure linux advisories AZL-31787AZL-35074

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-40660 updated cvss 6.6

OpenSC: Potential PIN bypass when card tracks its own login state

  • Red Hat Enterprise Linux 7 opensc
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux BaseOS (v. 8) opensc 0.20.0-7.el8_9
    fixed: vendor fix RHSA-2023:7876
  • Red Hat Enterprise Linux BaseOS (v. 9) opensc 0.23.0-3.el9_3
    fixed: vendor fix RHSA-2023:7879

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.6 CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 6.6 CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 7

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.