VDB

CVE-2023-40660

CVE-2023-40660 PUBLISHED CVSS 6.6 MEDIUM

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

Reported by redhat · Published November 6, 2023

OpenSC is fixed in 0.24.0 (GitHub Packages)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
OpenSCGitHub Packages0.24.0
openscAlpine0.24.0-r0
openscAmazon Linux0.23.0-3.amzn2023.0.2, 0.19.0-5.amzn2.0.2
openscopensc_project0.23.0

Risk scores

CVSS 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

VendorProductVersions
0.17.0
Red HatRed Hat Enterprise Linux 80:0.20.0-7.el8_9
Red HatRed Hat Enterprise Linux 90:0.23.0-3.el9_3
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Enterprise Linux 7
0.17.0
alpineopensc0
Red HatRed Hat Enterprise Linux 90:0.23.0-3.el9_3
amazon:2023opensc0
amazon:2opensc0
Red HatRed Hat Enterprise Linux 80:0.20.0-7.el8_9

Timeline

  • Sep 27, 2023 CVE Published
  • Nov 7, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 27, 2026 Distribution Patch (5 in total, the first dated here)
  • Mar 27, 2026 Security Advisory (7 in total, the first dated here)
  • Aug 4, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-40660
vulnetix vdb fixes CVE-2023-40660

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40660/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›