CVE-2026-40527 Details
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.
A command injection vulnerability has been identified in radare2 versions prior to commit bc5a890. This issue arises in the afsv/afsvj command path, where specially crafted ELF binaries can include malicious radare2 command sequences embedded in DWARF parameter names. When radare2 analyzes such a binary and the afsvj command is executed, the embedded shell commands are executed as well. This exploitation is made possible by the unsanitized interpolation of these parameter names into the pfq command string, allowing arbitrary shell command execution.
Users can update to the latest version of radare2, which includes the necessary fix for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/radareorg/radare2/commit/bc5a89033db3ecb5b1f7bf681fc6ba4dcfc14683 | [email protected] | Patch |
| https://github.com/radareorg/radare2/pull/25821 | [email protected] | ExploitIssue TrackingPatch |
| https://www.vulncheck.com/advisories/radare2-command-injection-via-dwarf-parameter-names | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| radare radare2 | < 6.1.6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | Initial Analysis | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |