CVE-2026-40527 radare2 Command Injection via DWARF Parameter Names

High 8.5 Published Updated

Attackers can execute arbitrary shell commands by crafting ELF binaries with malicious DWARF parameter names processed by radare2.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-40527?

CVE-2026-40527 is a high-severity command injection vulnerability in Radare Radare2, published on 17 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2026-40527?

It affects 1 product.

Products include Radare Radare2.

How do I fix CVE-2026-40527?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-40527 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40527 exists.

All Radare Radare2 vulnerabilities

Sources

Also known as GHSA-4pc8-6qgf-fgv2, UBUNTU-CVE-2026-40527.

Is CVE-2026-40527 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free