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
SUSE Linux Enterprise Module for Containers
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
Opensuse
Fedora
Gitlab Community Edition
GitLab Enterprise Edition
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
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