CVE-2026-40499 radare2 < 6.1.4 Command Injection via PDB Parser print_gvars()

High 8.4 Published Updated

Attackers can execute arbitrary commands by crafting a malicious PDB file with injected newlines in section names, affecting radare2 users.

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-40499?

CVE-2026-40499 is a high-severity command injection vulnerability in Radare Radare2, published on 15 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 version 6.1.4 contains a command injection vulnerability in the PDB parser's print_gvars() function that allows attackers to execute arbitrary commands by embedding a newline byte in the PE section header name field. Attackers can craft a malicious PDB file with specially crafted section names to inject r2 commands that are executed when the idp command processes the file.

Weakness: CWE-78

Which versions are affected by CVE-2026-40499?

It affects 1 product.

Linux distribution packages (1)
radare2 openSUSE:TumbleweedAll versions6.1.4-1.1

Products include Radare Radare2.

How do I fix CVE-2026-40499?

Upgrade to a fixed version.

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

Is CVE-2026-40499 being exploited?

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

All Radare Radare2 vulnerabilities

Sources

Also known as GHSA-7rhq-9q45-5gm4, MGASA-2026-0198, UBUNTU-CVE-2026-40499, openSUSE-SU-2026:10555-1.

Is CVE-2026-40499 in your software?

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

Check your SBOMs for free