Radare2 Command Injection Flaw Exposes Analysis Workflow
The National Vulnerability Database (NVD) has detailed a critical command injection vulnerability, CVE-2026-40527, affecting radare2. This flaw resides in the afsv/afsvj command path. Attackers can embed malicious radare2 commands within DWARF formal parameter names in crafted ELF binaries. When radare2 analyzes such a binary with the ‘aaa’ command and then executes ‘afsvj’, these embedded commands are interpolated unsanitized, leading to arbitrary shell command execution on the analyst’s system.
This vulnerability carries a HIGH CVSS score of 7.8. The exploit vector is local (AV:L), requires no privileges (PR:N), but needs user interaction (UI:R) through the analyst running the command on a malicious file. The impact is significant, allowing for High Confidentiality, Integrity, and Availability (C:H/I:H/A:H) loss. While specific affected products beyond radare2 itself aren’t detailed by NVD, the core issue lies in how radare2 parses and executes commands derived from binary metadata.
Defenders analyzing potentially malicious binaries with radare2 must immediately update to a version post commit bc5a890. For organizations that cannot patch immediately, extreme caution is advised when analyzing untrusted ELF files. Consider isolating analysis environments or using sandboxed instances to mitigate the risk of arbitrary code execution during the reverse engineering process.
What This Means For You
- If your security team uses radare2 for binary analysis, immediately patch to a version after commit bc5a890. If patching is delayed, ensure all analysis of untrusted binaries occurs in isolated, ephemeral environments to prevent potential command injection.
Related ATT&CK Techniques
🛡️ Detection Rules
3 rules · 6 SIEM formats3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.
CVE-2026-40527 - Radare2 Command Injection via DWARF Parameters
Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-40527 | Command Injection | radare2 prior to commit bc5a890 |
| CVE-2026-40527 | Command Injection | Vulnerable command path: afsv/afsvj |
| CVE-2026-40527 | Command Injection | Vulnerable component: DWARF DW_TAG_formal_parameter names in ELF binaries |
| CVE-2026-40527 | Command Injection | Triggering commands: aaa followed by afsvj |
| CVE-2026-40527 | Command Injection | Vulnerable function: unsanitized parameter interpolation in pfq command string |
Source & Attribution
| Source Platform | NVD |
| Channel | National Vulnerability Database |
| Published | April 18, 2026 at 00:16 UTC |
This content was AI-rewritten and enriched by Shimi's Cyber World based on the original source. All intellectual property rights remain with the original author.
Believe this infringes your rights? Submit a takedown request.