rake is vulnerable to OS command injection. The vulnerability exists as it improperly handles the value of the command file name in Rake::FileList
, allowing OS command injection when list.egrep
is called with a malicious file name such as | touch evil.txt
.
lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
bugzilla.suse.com/show_bug.cgi?id=1164804
github.com/ruby/rake/commit/5b8f8fc41a5d7d7d6a5d767e48464c60884d3aee
hackerone.com/reports/651518
lists.debian.org/debian-lts-announce/2020/02/msg00026.html
lists.fedoraproject.org/archives/list/[email protected]/message/523CLQ62VRN3VVC52KMPTROCCKY4Z36B/
lists.fedoraproject.org/archives/list/[email protected]/message/VXMX4ARNX2JLRJMSH4N3J3UBMUT5CI44/
usn.ubuntu.com/4295-1/