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-2025-66215

CVE-2025-66215: OpenSC Buffer Overflow Vulnerability

CVE-2025-66215 is a stack-buffer-overflow vulnerability in OpenSC smart card middleware that allows attackers with physical access to exploit crafted USB devices. This article covers technical details, affected versions, and mitigations.

Published: April 2, 2026

CVE-2025-66215 Overview

CVE-2025-66215 is a stack-based buffer overflow vulnerability affecting OpenSC, an open source smart card tools and middleware package. Prior to version 0.27.0, an attacker with physical access to the computer when a user or administrator uses a token can trigger a stack-buffer-overflow WRITE condition in the card-oberthur component. The attack requires a crafted USB device or smart card that presents the system with specially crafted responses to APDU (Application Protocol Data Unit) commands.

Critical Impact

Physical access exploitation enables potential arbitrary code execution through stack buffer overflow, affecting confidentiality, integrity, and availability of systems using OpenSC for smart card authentication.

Affected Products

  • OpenSC versions prior to 0.27.0
  • Systems using card-oberthur driver for Oberthur smart cards
  • Any application relying on OpenSC middleware for smart card operations

Discovery Timeline

  • 2026-03-30 - CVE-2025-66215 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2025-66215

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow), a memory corruption flaw that occurs when data is written beyond the boundaries of a stack-allocated buffer. The vulnerable component is the card-oberthur driver within OpenSC, which handles communication with Oberthur smart cards.

The attack requires physical proximity—an attacker must either connect a malicious USB device or insert a crafted smart card into a reader attached to the target system. When the victim system processes APDU responses from the malicious device, the card-oberthur driver fails to properly validate the length of incoming data before copying it to a stack buffer, resulting in a buffer overflow condition.

Successful exploitation could allow an attacker to overwrite adjacent stack memory, potentially corrupting return addresses or other critical data structures. This can lead to arbitrary code execution in the context of the application using OpenSC, compromising system confidentiality, integrity, and availability.

Root Cause

The root cause is insufficient bounds checking in the card-oberthur driver when processing APDU responses from smart cards. The driver allocates a fixed-size buffer on the stack but does not properly validate that incoming response data fits within this buffer before performing the write operation. When a malicious device returns oversized or malformed APDU responses, the driver blindly writes past the buffer boundary.

Attack Vector

The attack requires physical access to insert a malicious smart card or connect a crafted USB device to the target system. The attacker must time the attack to coincide with when a legitimate user or administrator actively uses a token, as the vulnerable code path is only triggered during smart card operations. The malicious device must be crafted to return specially formatted APDU responses that exploit the buffer overflow condition in the card-oberthur driver.

The physical access requirement limits the attack surface, but in shared computing environments, kiosk systems, or scenarios where smart card readers are accessible, this vulnerability poses a significant risk for privilege escalation or code execution.

Detection Methods for CVE-2025-66215

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using OpenSC for smart card authentication
  • Unusual USB device connection events, particularly unknown smart card reader devices
  • Memory corruption errors logged by system monitoring tools during smart card operations
  • Anomalous behavior following smart card insertion events

Detection Strategies

  • Monitor system logs for crashes or errors related to opensc-pkcs11, opensc-tool, or other OpenSC components
  • Implement USB device allowlisting to prevent unauthorized smart card readers from connecting
  • Deploy endpoint detection solutions that can identify memory corruption exploitation attempts
  • Use crash dump analysis to identify stack overflow patterns in OpenSC-related processes

Monitoring Recommendations

  • Enable detailed logging for smart card operations and APDU communication when feasible
  • Monitor for unexpected process terminations or memory access violations in OpenSC-related services
  • Track USB device insertion events and correlate with any subsequent system anomalies
  • Review authentication logs for failed or anomalous smart card authentication attempts

How to Mitigate CVE-2025-66215

Immediate Actions Required

  • Upgrade OpenSC to version 0.27.0 or later immediately on all affected systems
  • Restrict physical access to systems using smart card authentication where possible
  • Implement USB device allowlisting to prevent unauthorized devices from connecting
  • Consider temporarily disabling smart card functionality on critical systems until patching is complete

Patch Information

OpenSC has addressed this vulnerability in version 0.27.0. The fix is available through the GitHub Commit and was introduced via Pull Request 3436. Additional details are available in the GitHub Security Advisory GHSA-q5fc-cw56-hwp2 and the CVE-2025-66215 Wiki page.

Workarounds

  • Implement strict physical security controls to prevent unauthorized USB device connections
  • Use USB port blocking solutions or hardware locks on systems where smart card functionality is not required
  • Deploy endpoint protection that monitors for and blocks suspicious USB device activity
  • If Oberthur smart cards are not in use, consider disabling or removing the card-oberthur driver
bash
# Verify OpenSC version to confirm patch status
opensc-tool --version

# If running a vulnerable version, upgrade to 0.27.0 or later
# On Debian/Ubuntu systems:
sudo apt update && sudo apt install opensc

# On RHEL/CentOS systems:
sudo dnf update opensc

# On systems using source installation, rebuild from patched source:
git clone https://github.com/OpenSC/OpenSC.git
cd OpenSC
git checkout tags/0.27.0
./bootstrap && ./configure && make && sudo make install

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechOpensc

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-121
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Pull Request 3436

  • GitHub Security Advisory GHSA-q5fc-cw56-hwp2

  • GitHub CVE-2025-66215 Wiki
  • Related CVEs
  • CVE-2025-49010: OpenSC Buffer Overflow Vulnerability

  • CVE-2025-66038: OpenSC Buffer Overflow Vulnerability

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

  • CVE-2025-24531: OpenSC pam_pkcs11 Auth Bypass Flaw
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