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-49010

CVE-2025-49010: OpenSC Buffer Overflow Vulnerability

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

Published: April 2, 2026

CVE-2025-49010 Overview

CVE-2025-49010 is a stack 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 a computer during token use by a user or administrator can cause a stack-buffer-overflow write in the GET RESPONSE handler. The attack requires a crafted USB device or smart card that presents the system with specially crafted responses to Application Protocol Data Units (APDUs).

Critical Impact

Physical attackers can achieve high confidentiality, integrity, and availability impact through stack-based buffer overflow exploitation during smart card operations.

Affected Products

  • OpenSC versions prior to 0.27.0
  • Systems using OpenSC middleware for smart card authentication
  • Enterprise environments with USB smart card readers

Discovery Timeline

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

Technical Details for CVE-2025-49010

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow), which occurs when a program writes data beyond the boundaries of a stack-allocated buffer. In the context of OpenSC, the vulnerability exists in the handling of GET RESPONSE APDUs, which are used to retrieve data from smart cards during cryptographic operations.

The attack requires physical access to the target system and a maliciously crafted USB device or smart card. When a user or administrator interacts with the malicious hardware, specially crafted APDU responses can trigger a stack buffer overflow, potentially allowing arbitrary code execution with the privileges of the user operating the smart card middleware.

Root Cause

The root cause of this vulnerability lies in improper bounds checking when processing APDU responses from smart cards. The GET RESPONSE command, which retrieves pending data from a smart card after an initial command, does not properly validate the length of incoming data before copying it to a stack-allocated buffer. A malicious device can send a response larger than the expected buffer size, causing memory corruption on the stack.

Attack Vector

The attack vector requires physical proximity to the target system. An attacker must either:

  1. Connect a malicious USB smart card reader device to the target system
  2. Insert a specially crafted smart card into a legitimate reader
  3. Compromise an existing smart card reader to inject malicious responses

Once the malicious hardware is connected and a user initiates a smart card operation (such as authentication or signing), the crafted APDU responses trigger the buffer overflow. Due to the physical access requirement, this vulnerability is most concerning in scenarios where attackers can physically access endpoints, such as in supply chain attacks, insider threat scenarios, or targeted attacks against high-value individuals.

The exploitation mechanism involves the smart card middleware receiving an oversized response to a GET RESPONSE APDU command. When the middleware attempts to copy this response into a fixed-size stack buffer without proper length validation, the excess data overwrites adjacent stack memory, including potentially the return address and saved registers.

Detection Methods for CVE-2025-49010

Indicators of Compromise

  • Unexpected smart card or USB device connection events on sensitive systems
  • Application crashes in OpenSC-related processes (opensc-tool, pkcs11-tool, or applications using OpenSC libraries)
  • Stack corruption indicators in system crash dumps from smart card operations
  • Unusual APDU response sizes in smart card communication logs

Detection Strategies

  • Monitor for abnormal USB device connections, particularly smart card readers from unknown manufacturers
  • Implement application crash monitoring for processes that utilize OpenSC middleware
  • Deploy endpoint detection rules to identify stack-based exploitation attempts in smart card-related binaries
  • Review system logs for repeated authentication failures or crashes during smart card operations

Monitoring Recommendations

  • Enable detailed logging for smart card subsystem events
  • Configure USB device allowlists to restrict unauthorized smart card readers
  • Implement crash dump analysis for applications using PKCS#11 interfaces
  • Monitor for unexpected memory access violations in authentication processes

How to Mitigate CVE-2025-49010

Immediate Actions Required

  • Upgrade OpenSC to version 0.27.0 or later immediately
  • Audit physical access controls for systems using smart card authentication
  • Implement USB device whitelisting to prevent unauthorized smart card readers
  • Review enterprise smart card deployment for potentially compromised devices

Patch Information

OpenSC has addressed this vulnerability in version 0.27.0. Organizations should update their OpenSC installations to this version or later. The fix implements proper bounds checking for APDU response handling in the GET RESPONSE command processing.

For detailed information about the security fix, refer to the GitHub Security Advisory and the OpenSC CVE Wiki Entry.

Workarounds

  • Implement strict USB device policies allowing only known and approved smart card readers
  • Disable smart card functionality on systems where it is not required
  • Use physical security controls to prevent unauthorized device connections
  • Deploy endpoint protection solutions capable of detecting USB-based attacks
bash
# Configuration example: Restrict USB smart card readers using udev rules (Linux)
# Create /etc/udev/rules.d/99-smartcard-restrict.rules
# Only allow specific approved smart card reader vendor/product IDs
SUBSYSTEM=="usb", ATTR{idVendor}=="APPROVED_VENDOR", ATTR{idProduct}=="APPROVED_PRODUCT", MODE="0660", GROUP="scard"
SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="0b", MODE="0000"

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 Security Advisory

  • GitHub CVE Wiki Entry
  • Related CVEs
  • CVE-2025-66038: OpenSC Buffer Overflow Vulnerability

  • CVE-2025-66215: 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