cve.bz

CVE-2023-40660 Improper Authentication

6.6 mediumEPSS 1.0%Fix available

Medium (6.6). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2023-12-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40660 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40660?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40660?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40660 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:0.20.0-7.el8_9
Red Hat Enterprise Linux 90:0.23.0-3.el9_3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10opensc0.19.0-1+deb10u3DLA-3668-1
Debian11opensc0.21.0-1+deb11u1DLA-4004-1
Debian12opensc0.23.0-0.3+deb12u1DEBIAN-CVE-2023-40660
Debian13, 14opensc0.23.0-2DEBIAN-CVE-2023-40660
UbuntuPro:16.04:LTSopensc0.15.0-1ubuntu1+esm2USN-7346-1
UbuntuPro:18.04:LTSopensc0.17.0-3ubuntu0.1~esm2USN-7346-1
UbuntuPro:20.04:LTSopensc0.20.0-3ubuntu0.1~esm4UBUNTU-CVE-2023-40660 USN-7346-1 USN-7346-3
UbuntuPro:22.04:LTSopensc0.22.0-1ubuntu2+esm1UBUNTU-CVE-2023-40660 USN-7346-1
UbuntuPro:24.04:LTSopensc0.25.0~rc1-1ubuntu0.1~esm1USN-7346-1
Red Hatenterprise_linux:8::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.20.0-7.el8_9RHSA-2023:7876
Red Hatenterprise_linux:9::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.23.0-3.el9_3RHSA-2023:7879
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreopensc0.19.0-150100.3.25.1SUSE-SU-2023:4104-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 2 moreopensc0.22.0-150400.3.6.1SUSE-SU-2023:4089-1
openSUSETumbleweedopensc0.23.0-3.1openSUSE-SU-2024:13314-1
AlmaLinux8opensc0.20.0-7.el8_9ALSA-2023:7876
AlmaLinux9opensc0.23.0-3.el9_3ALSA-2023:7879
Alpinev3.19, v3.20, v3.21 and 3 moreopensc0.24.0-r0ALPINE-CVE-2023-40660
Azure Linux2opensc0.23.0-4AZL-31787
Azure Linux3opensc0.25.1-3AZL-35074

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8opensc-0:0.20.0-7.el8_9Fixed 2023-12-19RHSA-2023:7876
Red Hat Enterprise Linux 9opensc-0:0.23.0-3.el9_3Fixed 2023-12-19RHSA-2023:7879
Red Hat Enterprise Linux 7openscOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40660.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON