CVE-2026-40527: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in radareorg radare2
radare2 prior to commit bc5a890 contains a command injection vulnerability in the afsv/afsvj command path where crafted ELF binaries can embed malicious r2 command sequences as DWARF DW_TAG_formal_parameter names. Attackers can craft a binary with shell commands in DWARF parameter names that execute when radare2 analyzes the binary with aaa and subsequently runs afsvj, allowing arbitrary shell command execution through the unsanitized parameter interpolation in the pfq command string.
AI Analysis
Technical Summary
The vulnerability in radare2 (CVE-2026-40527) involves improper neutralization of special elements used in OS commands (CWE-78). Specifically, crafted ELF binaries can include malicious shell commands within DWARF DW_TAG_formal_parameter names. When radare2 processes these binaries using the aaa command and then executes afsvj, the embedded commands are interpolated unsafely in the pfq command string, leading to arbitrary shell command execution. This affects radare2 versions prior to the commit bc5a890. No vendor advisory or patch information is currently available.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands on the system running radare2 by embedding malicious commands in ELF binaries. This can lead to unauthorized code execution with the privileges of the user running radare2. The CVSS 4.0 score of 8.5 indicates high severity with local attack vector, low attack complexity, no privileges required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or update is released, avoid analyzing untrusted ELF binaries with radare2 commands aaa and afsvj. Consider running radare2 in a restricted environment or sandbox to limit potential impact.
CVE-2026-40527: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in radareorg radare2
Description
radare2 prior to commit bc5a890 contains a command injection vulnerability in the afsv/afsvj command path where crafted ELF binaries can embed malicious r2 command sequences as DWARF DW_TAG_formal_parameter names. Attackers can craft a binary with shell commands in DWARF parameter names that execute when radare2 analyzes the binary with aaa and subsequently runs afsvj, allowing arbitrary shell command execution through the unsanitized parameter interpolation in the pfq command string.
CVSS v4.0
Score 8.5high
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
The vulnerability in radare2 (CVE-2026-40527) involves improper neutralization of special elements used in OS commands (CWE-78). Specifically, crafted ELF binaries can include malicious shell commands within DWARF DW_TAG_formal_parameter names. When radare2 processes these binaries using the aaa command and then executes afsvj, the embedded commands are interpolated unsafely in the pfq command string, leading to arbitrary shell command execution. This affects radare2 versions prior to the commit bc5a890. No vendor advisory or patch information is currently available.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands on the system running radare2 by embedding malicious commands in ELF binaries. This can lead to unauthorized code execution with the privileges of the user running radare2. The CVSS 4.0 score of 8.5 indicates high severity with local attack vector, low attack complexity, no privileges required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or update is released, avoid analyzing untrusted ELF binaries with radare2 commands aaa and afsvj. Consider running radare2 in a restricted environment or sandbox to limit potential impact.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.810Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e29db8bdfbbecc598ee1c8
Added to database: 04/17/2026, 20:53:12 UTC
Last enriched: 07/15/2026, 10:29:27 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 228
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.