CVE-2020-8130 json
OS Command Injection in Rake
published 6y ago modified 4mo ago also GHSA-jppv-gw3r-w3q8 , EUVD-2020-0305
- cvss
- 6.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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 `|`.
Patch / fix
- rubygems rake 12.3.3
- ruby-lang rake 12.3.3
- rake Debian 14, Debian 13, Debian 12 12.3.3-1
debian advisories DEBIAN-CVE-2020-8130
- rake Ubuntu 16.04 LTS 10.5.0-2ubuntu0.1
- rake Ubuntu 18.04 LTS 12.3.1-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2020-8130
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- foreman satellite capsule 6.10, satellite 6.10 2.5.2.17-2.el7sat
- candlepin satellite 6.10 4.0.9-1.el7sat
- satellite satellite capsule 6.10, satellite 6.10 6.10.0-3.el7sat
- python-ecdsa satellite capsule 6.10, satellite 6.10 0.13.3-2.el7pc
- python-pyyaml satellite capsule 6.10, satellite 6.10 5.4.1-1.el7pc
- python3-ecdsa satellite capsule 6.10, satellite 6.10 0.13.3-2.el7pc
- python-aiohttp satellite capsule 6.10, satellite 6.10 3.7.4-1.el7pc
- python-urllib3 satellite capsule 6.10, satellite 6.10 1.26.5-1.el7pc
red hat advisories RHSA-2021:4702
- rubygem-rake SLE Module for Containers 12 10.3.2-9.7.1
- ruby2.5 SLES for SAP 15, SLES 15-LTSS, SLE Module for Basesystem 15 SP1 +2 more 2.5.7-4.8.1
suse advisories SUSE-SU-2022:3212-1SUSE-SU-2020:0737-1
- ruby2.5 openSUSE Leap 15.1 2.5.7-lp151.4.6.1
opensuse advisories openSUSE-SU-2020:0395-1
- github.com/ruby/rake@5b8f8fc commit
- hackerone.com/reports/651518 advisory
Is CVE-2020-8130 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-8130 updated cvss 0.0
rake: OS Command Injection via egrep in Rake::FileList
-
Red Hat CloudForms Management Engine 5 cfme-gemset, cfme-amazon-smartstate Red Hat Storage 3 rubygem-rakeaffected: workaround, no fix available “Fix deferred”
-
Red Hat Satellite 6.10 satellite 6.10.0-3.el7sat Red Hat Satellite Capsule 6.10 satellite 6.10.0-3.el7satfixed: vendor fix RHSA-2021:4702
-
Red Hat OpenShift Container Platform 3.11 fluentd Red Hat OpenShift Container Platform 4 openshift4/ose-logging-fluentd Red Hat Satellite 6.10 tfm 7.0-1.el7sat, gofer 2.12.5-7.el7sat, katello 4.1.1-2.el7sat, libsolv 0.7.20-1.el7pc, receptor 0.6.4-2.el7ar, libcomps 0.1.15-1.el7pc, +584 more Red Hat Satellite Capsule 6.10 tfm 7.0-1.el7sat, katello 4.1.1-2.el7sat, libsolv 0.7.20-1.el7pc, libcomps 0.1.15-1.el7pc, python-rq 1.8.1-1.el7pc, python-idna 2.10-1.el7pc, +368 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.36% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- hackerone.com https://hackerone.com/reports/651518 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
| GitHub | 3.1 | 6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rake | <12.3.3 |
12.3.3 |
Affected products
- n/a https://github.com/ruby/ruby
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
hackerone.com
/reports/651518
web, exploit, patch, third-party-advisory
-
github.com
/ruby/rake/commit/5b8f8fc41a5d7d7d6a5d767e48464c60884d3aee
web
-
usn.ubuntu.com
/4295-1/
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-03/msg00041.html
vendor-advisory, web, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VXMX4ARNX2JLRJMSH4N3J3UBMUT5CI44/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/523CLQ62VRN3VVC52KMPTROCCKY4Z36B/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2020/02/msg00026.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-8130
advisory
-
github.com
/advisories/GHSA-jppv-gw3r-w3q8
advisory
-
github.com
/ruby/rake
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rake/CVE-2020-8130.yml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/523CLQ62VRN3VVC52KMPTROCCKY4Z36B
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/VXMX4ARNX2JLRJMSH4N3J3UBMUT5CI44
web
-
usn.ubuntu.com
/4295-1
web
Sources
- CVE List CVE-2020-8130
- GitHub Advisory GHSA-jppv-gw3r-w3q8
- NVD CVE-2020-8130
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.