Skip to content
OpenAdvisories
Medium · 6.4 CVE-2020-8130 EUVD-2020-0305GHSA-jppv-gw3r-w3q8

OS Command Injection in Rake

Published Feb 24, 2020 · Updated Aug 4, 2024 · Assigned by hackerone

Description

There is an OS command injection vulnerability in Ruby Rake < 12.3.3 in Rake::FileList when supplying a filename that begins with the pipe character `|`.

Affected products

VendorProductAffectedFixed
— https://github.com/ruby/ruby Fixed in Rake 12.3.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rake 12.3.3-1 —
Debian 13 rake 12.3.3-1 —
Debian 12 rake 12.3.3-1 —
Debian 8 rake 10.3.2-2+deb8u1 DLA-2120-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS rake 12.3.1-1ubuntu0.1 USN-4295-1
Ubuntu 16.04 LTS rake 10.5.0-2ubuntu0.1 USN-4295-1
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 satellite +1 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 candlepin 4.0.9-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 satellite 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-activerecord-session_store 2.0.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-addressable 2.8.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-puma 5.3.2-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-rails +1 6.0.3.7-1.el7sat RHSA-2021:4702
ReleasePackageFixed inAdvisory
SLES 15 SP1 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
SLES 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
SLES 12 rubygem-rake 10.3.2-9.7.1 SUSE-SU-2022:3212-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
SLE HPC 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 ruby2.5 2.5.7-lp151.4.6.1 openSUSE-SU-2020:0395-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rake < 12.3.3 12.3.3 GHSA-jppv-gw3r-w3q8

Advisories 6

References