Command Injection in radare2 - CVE-2019-14745
Published: August 7, 2019 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a local non-authenticated attacker to execute arbitrary code.
In radare2 before 3.7.0, a command injection vulnerability exists in bin_symbols() in libr/core/cbin.c. By using a crafted executable file, it's possible to execute arbitrary shell commands with the permissions of the victim. This vulnerability is due to improper handling of symbol names embedded in executables.
Affected software
radare2 (Alpine package)
cutter-re
radare2
Fedora
How to mitigate CVE-2019-14745
radare2 (Alpine package) - update to 3.9.0-r0
cutter-re - addressed in versions 1.9.0-1.fc30, 1.9.0-1.fc31
radare2 - addressed in versions 3.9.0-1.el7.1, 3.9.0-1.fc29.1, 3.9.0-1.fc30.1, 3.9.0-1.fc31.1, 3.9.0-3.el7.1, 3.9.0-3.fc29.1
External References
- https://bananamafia.dev/post/r2-pwndebian/
- https://github.com/radare/radare2/pull/14690
- https://github.com/radare/radare2/releases/tag/3.7.0
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ETWG4VKHWL5F74L3QBBKSCOXHSRNSRRT/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MGA2PVBFA6VPWWLMBGWVBESHAJBQ7OXJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RQO7V37RGQEKZDLY2JYKDZTLNN2YUBC5/