CVE-2026-40499: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in radareorg radare2
radare2 prior to version 6.1.4 contains a command injection vulnerability in the PDB parser's print_gvars() function that allows attackers to execute arbitrary commands by embedding a newline byte in the PE section header name field. Attackers can craft a malicious PDB file with specially crafted section names to inject r2 commands that are executed when the idp command processes the file.
AI Analysis
Technical Summary
CVE-2026-40499 describes an OS command injection vulnerability in radare2 before version 6.1.4. The issue exists in the PDB parser's print_gvars() function, where specially crafted PE section header names containing newline bytes enable attackers to inject and execute arbitrary r2 commands. This occurs during processing by the idp command, which executes the injected commands embedded in the malicious PDB file. The vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command) and has a CVSS v4.0 score of 8.4, indicating high severity. There is no vendor advisory or patch information provided, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands within the radare2 environment by leveraging crafted PDB files. This can lead to unauthorized command execution, potentially compromising the host system or the environment where radare2 is run. The vulnerability requires user interaction (processing a malicious PDB file) and local access to the radare2 tool. The high CVSS score reflects the significant impact on confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or malicious PDB files with radare2. Monitor radareorg's official channels for updates regarding patches or workarounds.
CVE-2026-40499: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in radareorg radare2
Description
radare2 prior to version 6.1.4 contains a command injection vulnerability in the PDB parser's print_gvars() function that allows attackers to execute arbitrary commands by embedding a newline byte in the PE section header name field. Attackers can craft a malicious PDB file with specially crafted section names to inject r2 commands that are executed when the idp command processes the file.
CVSS v4.0
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40499 describes an OS command injection vulnerability in radare2 before version 6.1.4. The issue exists in the PDB parser's print_gvars() function, where specially crafted PE section header names containing newline bytes enable attackers to inject and execute arbitrary r2 commands. This occurs during processing by the idp command, which executes the injected commands embedded in the malicious PDB file. The vulnerability is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command) and has a CVSS v4.0 score of 8.4, indicating high severity. There is no vendor advisory or patch information provided, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands within the radare2 environment by leveraging crafted PDB files. This can lead to unauthorized command execution, potentially compromising the host system or the environment where radare2 is run. The vulnerability requires user interaction (processing a malicious PDB file) and local access to the radare2 tool. The high CVSS score reflects the significant impact on confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid processing untrusted or malicious PDB files with radare2. Monitor radareorg's official channels for updates regarding patches or workarounds.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.808Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69defc3b82d89c981ff96336
Added to database: 04/15/2026, 02:47:23 UTC
Last enriched: 07/15/2026, 10:27:25 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 158
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.