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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.