cve.bz

CVE-2020-8130 OS Command Injection

6.4 mediumExploit referenceEPSS 1.4%Fix available

Medium (6.4). EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in rake 12.3.3.

On this page
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 `|`.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8130 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8130?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8130?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8130 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:rakebefore 12.3.3
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.10
debian:debian_linux8.0
fedoraproject:fedora30
fedoraproject:fedora31
opensuse:leap15.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jppv-gw3r-w3q8RubyGemsrake<12.3.312.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8rake10.3.2-2+deb8u1DLA-2120-1
Debian12, 13, 14rake12.3.3-1DEBIAN-CVE-2020-8130
Ubuntu16.04:LTSrake10.5.0-2ubuntu0.1UBUNTU-CVE-2020-8130 USN-4295-1
Ubuntu18.04:LTSrake12.3.1-1ubuntu0.1UBUNTU-CVE-2020-8130 USN-4295-1
Red Hatsatellite:6.10::el7candlepin0:4.0.9-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7satellite0:6.10.0-3.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-activerecord-session_store0:2.0.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-addressable0:2.8.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-puma0:5.3.2-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-rails, tfm-rubygem-actionpack0:6.0.3.7-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7foreman0:2.5.2.17-2.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-aiohttp0:3.7.4-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-ecdsa, python3-ecdsa0:0.13.3-2.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-pyyaml, python3-pyyaml0:5.4.1-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-urllib3, python3-urllib30:1.26.5-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python3-django0:2.2.24-1.el7pcRHSA-2021:4702
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Basesystem 15 SP1 and 2 moreruby2.52.5.7-4.8.1SUSE-SU-2020:0737-1
SUSELinux Enterprise Module for Containers 12rubygem-rake10.3.2-9.7.1SUSE-SU-2022:3212-1
openSUSELeap 15.1ruby2.52.5.7-lp151.4.6.1openSUSE-SU-2020:0395-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CloudForms 5.10 and Red Hat Satellite 6 contains affected rake version, however, it is not vulnerable since it does not use `egrep` after `FileList` loads file with pipe-character, this makes OS injection practically impossible with it's existing Rakefile. Red Hat may update rake in future releases.

The version of rubygem-rake shipped with Red Hat Gluster Storage includes the vulnerable code, but the module FileList is currently not used by the product and hence this issue has been rated as having a security impact of Low for RHGS.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Satellite 6.10 for RHEL 7satellite-0:6.10.0-3.el7satFixed 2021-11-16RHSA-2021:4702
CloudForms Management Engine 5cfme-amazon-smartstateFix deferred
CloudForms Management Engine 5cfme-gemsetFix deferred
Red Hat OpenShift Container Platform 3.11fluentdNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-logging-fluentdNot affected
Red Hat Storage 3rubygem-rakeFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8130.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON