OS Command Injection in Rake - CVE-2020-8130
Published: March 2, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation in "Rake::FileList" when supplying a filename that begins with the pipe character "|". A remote unauthenticated attacker can execute arbitrary OS commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
Debian Linux
SUSE Linux Enterprise Module for Containers
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
Opensuse
Ubuntu
Fedora
Gitlab Community Edition
GitLab Enterprise Edition
rake (Debian package)
rake (Ubuntu package)
ruby2.1-rubygem-rake
rubygem-rake
How to mitigate CVE-2020-8130
Gitlab Community Edition - addressed in versions 12.9.8, 12.10.7, 13.0.1
GitLab Enterprise Edition - addressed in versions 12.9.8, 12.10.7, 13.0.1
rake (Debian package) - update to 10.3.2-2+deb8u1
rake (Ubuntu package) - addressed in versions 10.5.0-2ubuntu0.1, 12.3.1-1ubuntu0.1, 12.3.1-3ubuntu0.1
ruby2.1-rubygem-rake - update to 10.3.2-9.7.1
rubygem-rake - addressed in versions 12.3.3-200.fc30, 12.3.3-200.fc31
External References
Related Security Bulletins
- OS Command Injection in rake program in Ruby
- OpenSUSE update for ruby
- GitLab security update for Ruby
- Amazon Linux AMI update for rubygem24-rake
- Amazon Linux AMI update for rubygem-rake
- SUSE update for rubygem-rake
- Fedora 31 update for rubygem-rake
- Fedora 30 update for rubygem-rake
- Ubuntu update for rake
- Debian update for rake