Skip to content

Command injection during opening PE file with malformed debug symbol information (PDB) - `idpd` command

High
XVilka published GHSA-r552-vp94-9358 Jul 20, 2020

Package

radare2

Affected versions

<4.5.0

Patched versions

4.5.0

Description

Impact

Malformed PDB file names in the PDB server path cause shell injection. To trigger the problem it's required to open the executable in radare2 and run idpd to trigger the download. The shell code will execute, and will create a file called pwned in the current directory.

Patches

Problem has been patched in 4.5.0 version in the following commit: 04edfa8

Workarounds

Set up e bin.dbginfo=false in $HOME/.config/radare2/radare2rc to disable PDB autoloading and do not use idpd manually

References

The file triggering error is attached here ConsoleApplication1.zip (password is infected)

For more information

If you have any questions or comments about this advisory:

Severity

High

CVE ID

CVE-2020-15121

Weaknesses

No CWEs