The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-40660

CVE-2023-40660: OpenSC Authentication Bypass Vulnerability

CVE-2023-40660 is an authentication bypass flaw in OpenSC that allows PIN bypass through zero-length PIN values, enabling unauthorized cryptographic operations. This article covers technical details, impact, and mitigation.

Published: January 28, 2026

CVE-2023-40660 Overview

A significant authentication bypass vulnerability has been identified in OpenSC packages that allows potential PIN bypass on smart card tokens. When a token or card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length PIN is passed. This flaw poses a substantial security risk, particularly for operating system logon mechanisms, screen unlock functionality, and small permanently connected tokens attached to computers.

The vulnerability enables attackers with physical access to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness. Since the token can internally track login status, an authenticated session in one process can be exploited by other processes without proper re-authentication.

Critical Impact

Physical attackers can bypass smart card PIN authentication and perform cryptographic operations using authenticated tokens, potentially compromising OS login security and connected hardware tokens.

Affected Products

  • OpenSC Project OpenSC (all versions prior to 0.24.0-rc1)
  • Red Hat Enterprise Linux 8.0
  • Red Hat Enterprise Linux 9.0

Discovery Timeline

  • November 6, 2023 - CVE CVE-2023-40660 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2023-40660

Vulnerability Analysis

This vulnerability (CWE-287: Improper Authentication) exists in how OpenSC handles PIN authentication state across multiple processes. The core issue lies in the authentication state management where the token's internal login status persists across different application contexts. When a legitimate user authenticates to a smart card token in one process, the authentication state remains valid system-wide. A malicious process can then exploit this by passing an empty (zero-length) PIN to perform cryptographic operations on behalf of the authenticated user.

The physical attack vector requires an attacker to have direct access to a machine with a connected smart card token. Once physical access is obtained, the attacker can leverage the vulnerability to bypass the PIN verification mechanism entirely by utilizing the existing authenticated session state maintained by the token.

Root Cause

The root cause stems from improper validation of PIN length during authentication attempts across process boundaries. OpenSC fails to properly enforce PIN requirements when a token has already been authenticated in another process context. The token's internal state management does not adequately segregate authentication sessions between different processes, allowing an empty PIN to be accepted as valid credentials when an existing authenticated session is present.

Attack Vector

The attack requires physical access to the target system with a smart card token already authenticated. The attacker can then:

  1. Identify a token that has been previously authenticated by a legitimate user process
  2. Initiate a new process and attempt cryptographic operations on the authenticated token
  3. Pass an empty zero-length PIN value to bypass authentication
  4. Perform unauthorized cryptographic operations using the token's existing authenticated state

The vulnerability is particularly dangerous in scenarios involving:

  • OS logon and screen unlock mechanisms relying on smart card authentication
  • Permanently connected tokens on workstations (such as USB security keys)
  • Shared or kiosk-style computing environments

Since no verified code examples are available, technical details regarding the specific exploitation mechanism can be found in the GitHub OpenSC Issue Comment and the OpenSC Security Advisories.

Detection Methods for CVE-2023-40660

Indicators of Compromise

  • Unexpected cryptographic operations logged when no user is actively using their smart card
  • Multiple processes accessing the same token with successful authentication using zero-length or empty PINs
  • Anomalous token access patterns from processes not typically associated with smart card operations
  • Authentication events showing successful token access without corresponding PIN entry prompts

Detection Strategies

  • Monitor system logs for OpenSC library calls with empty or zero-length PIN parameters
  • Implement process monitoring to track which applications access smart card tokens and correlate with user activity
  • Deploy endpoint detection rules to identify unexpected processes performing cryptographic operations via OpenSC
  • Enable verbose logging in OpenSC configurations to capture detailed authentication attempts

Monitoring Recommendations

  • Implement SentinelOne endpoint monitoring to detect abnormal smart card token access patterns
  • Configure audit logging for all PKCS#11 library interactions on systems using OpenSC
  • Monitor for multiple concurrent processes accessing the same smart card token
  • Alert on cryptographic operations performed outside of expected application contexts

How to Mitigate CVE-2023-40660

Immediate Actions Required

  • Update OpenSC to version 0.24.0-rc1 or later immediately on all affected systems
  • Remove permanently connected smart card tokens when not actively in use
  • Implement physical security controls to prevent unauthorized access to systems with connected tokens
  • Configure systems to require re-authentication after screen lock or session timeout
  • Review and restrict which applications are permitted to access smart card tokens

Patch Information

OpenSC has released version 0.24.0-rc1 which addresses this vulnerability. The patch is available from the GitHub OpenSC Release page. Multiple Linux distributions have also issued security updates:

  • Red Hat Enterprise Linux: Security advisories RHSA-2023:7876 and RHSA-2023:7879 provide patched packages
  • Debian: Security update announced in Debian LTS Announcement
  • Fedora: Updates available via Fedora Package Announcement

Workarounds

  • Physically disconnect smart card tokens when not actively performing authentication
  • Configure token middleware to require explicit re-authentication for each cryptographic operation
  • Implement application whitelisting to restrict which processes can access PKCS#11 libraries
  • Enable session timeouts that force token deauthentication after periods of inactivity
bash
# Verify installed OpenSC version and update on RHEL/CentOS
rpm -qa | grep opensc
sudo yum update opensc

# Verify installed OpenSC version and update on Debian/Ubuntu
dpkg -l | grep opensc
sudo apt-get update && sudo apt-get upgrade opensc

# Check OpenSC version
opensc-tool --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpensc

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-287
  • Technical References
  • Red Hat Security Advisory RHSA-2023:7876

  • Red Hat Security Advisory RHSA-2023:7879

  • Red Hat CVE Details CVE-2023-40660

  • Red Hat Bugzilla Issue 2240912

  • GitHub OpenSC Issue Comment

  • GitHub OpenSC Release 0.24.0-rc1

  • Openwall OSS-Security Post

  • Debian LTS Announcement #00024

  • Debian LTS Announcement #00026

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub OpenSC Security Advisories
  • Related CVEs
  • CVE-2025-24531: OpenSC pam_pkcs11 Auth Bypass Flaw

  • CVE-2025-49010: OpenSC Buffer Overflow Vulnerability

  • CVE-2025-66037: OpenSC Use-After-Free Vulnerability

  • CVE-2025-66038: OpenSC Buffer Overflow Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English