MediumGHSA-jppv-gw3r-w3q8CVE-2020-8130
OS Command Injection in Rake
Published 28 Feb 2020 · Updated 19 Feb 2024
Is your project on an affected rake?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
rakeRubyGems
- Affected
- <12.3.3
- Fixed in
- 12.3.3
Update to the fixed version for your release line, for example:
bundle update --conservative rake # Gemfile: '>= 12.3.3'Details
There is an OS command injection vulnerability in Ruby Rake before 12.3.3 in Rake::FileList when supplying a filename that begins with the pipe character |.
Is GHSA-jppv-gw3r-w3q8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rake, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-8130
- Linkgithub.com/ruby/rake/commit/5b8f8fc41a5d7d7d6a5d767e48464c60884d3aee
- Linkhackerone.com/reports/651518
- Advisorygithub.com/advisories/GHSA-jppv-gw3r-w3q8
- Packagegithub.com/ruby/rake
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rake/CVE-2020-8130.yml
- Linklists.debian.org/debian-lts-announce/2020/02/msg00026.html
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/523CLQ62VRN3VVC52KMPTROCCKY4Z36B
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VXMX4ARNX2JLRJMSH4N3J3UBMUT5CI44
- Linkusn.ubuntu.com/4295-1
- Linklists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.