Description
radare2 prior to 6.1.4 contains a command injection vulnerability in the PDB parser's print_gvars() function that allows attackers to execute arbitrary commands by crafting a malicious PDB file with newline characters in symbol names. Attackers can inject arbitrary radare2 commands through unsanitized symbol name interpolation in the flag rename command, which are then executed when a user runs the idp command against the malicious PDB file, enabling arbitrary OS command execution through radare2's shell execution operator.
Problem types
CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version before 6.1.4
Credits
Jun Rong of Calif.io
References
blog.calif.io/p/mad-bugs-discovering-a-0-day-in-zero
github.com/radareorg/radare2/issues/25730
github.com/radareorg/radare2/pull/25731
www.vulncheck.com/...d-injection-via-pdb-parser-symbol-names