Arbitrary command execution via unsanitized PDB symbols
Published Apr 22, 2026 · Updated Apr 22, 2026
Command injection in radare2 before 6.1.4 allows attackers to execute arbitrary OS commands through a crafted PDB file. The PDB parser's print_gvars() function places a raw symbol name inside an fN flag-rename command, allowing newline and command metacharacters to escape its quoted context. Execution requires a user to open the associated binary and run idp, which evaluates the generated commands with that user's operating-system privileges.
Summary
What happened
Command injection in radare2 before 6.1.4 allows attackers to execute arbitrary OS commands through a crafted PDB file. The PDB parser's print_gvars() function places a raw symbol name inside an fN flag-rename command, allowing newline and command metacharacters to escape its quoted context. Execution requires a user to open the associated binary and run idp, which evaluates the generated commands with that user's operating-system privileges.
The record
- CVE
- CVE-2026-40517
- Published
- Apr 22, 2026
- Updated
- Apr 22, 2026
- Vendor
- radareorg
- Product
- radare2
- Classifications
- CWE-78, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 22, 2026CVE publishedPublication date reported by the CVE source.
- Apr 22, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <6.1.4
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- MAD Bugs radare2 poc.pyfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo