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 c
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 `|`.
- Published
- Feb 24, 2020
- Updated
- Jun 16, 2026
- EPSS
- 1.4% · 71th percentile
- CWE
- CWE-78
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
25
Monitor
Low priority for now.
- CVSS
- 25 / 40 · 6.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.4%
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| ruby-lang | rake | cpe:2.3:a:ruby-lang:rake |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- canonical ubuntu linux19.10
- debian debian linux8.0
- fedoraproject fedora30
- fedoraproject fedora31
- opensuse leap15.1
- ruby-lang rakebefore 12.3.3
Versions reported by the vendor
Affected version ranges reported by the assigning authority (hackerone). Independent of NVD's CPE analysis and usually ahead of it.
n/a https://github.com/ruby/ruby
- Fixed in Rake 12.3.3affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | rake | before 12.3.3-1 | 12.3.3-1 |
| Debian:8 | rake | before 10.3.2-2+deb8u1 | 10.3.2-2+deb8u1 |
| openSUSE:Leap 15.1 | ruby2.5 | before 2.5.7-lp151.4.6.1 | 2.5.7-lp151.4.6.1 |
| Red Hat:satellite_capsule:6.10::el7 | foreman | before 0:2.5.2.17-2.el7sat | 0:2.5.2.17-2.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | python-aiohttp | before 0:3.7.4-1.el7pc | 0:3.7.4-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-django | before 0:2.2.24-1.el7pc | 0:2.2.24-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-ecdsa | before 0:0.13.3-2.el7pc | 0:0.13.3-2.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-pyyaml | before 0:5.4.1-1.el7pc | 0:5.4.1-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | python3-urllib3 | before 0:1.26.5-1.el7pc | 0:1.26.5-1.el7pc |
| Red Hat:satellite_capsule:6.10::el7 | satellite | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | satellite-capsule | before 0:6.10.0-3.el7sat | 0:6.10.0-3.el7sat |
| Red Hat:satellite_capsule:6.10::el7 | tfm-rubygem-nokogiri | before 0:1.11.3-2.el7sat | 0:1.11.3-2.el7sat |
| Red Hat:satellite:6.10::el7 | candlepin | before 0:4.0.9-1.el7sat | 0:4.0.9-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-actionpack | before 0:6.0.3.7-1.el7sat | 0:6.0.3.7-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-activerecord-session_store | before 0:2.0.0-1.el7sat | 0:2.0.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-addressable | before 0:2.8.0-1.el7sat | 0:2.8.0-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-puma | before 0:5.3.2-1.el7sat | 0:5.3.2-1.el7sat |
| Red Hat:satellite:6.10::el7 | tfm-rubygem-rails | before 0:6.0.3.7-1.el7sat | 0:6.0.3.7-1.el7sat |
| RubyGems | rake | before 12.3.3 | 12.3.3 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | ruby2.5 | before 2.5.7-4.8.1 | 2.5.7-4.8.1 |
| SUSE:Linux Enterprise Module for Containers 12 | rubygem-rake | before 10.3.2-9.7.1 | 10.3.2-9.7.1 |
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rake | 12.3.3-1 · Debian:12 | Package registry (OSV) |
| opensuse:ruby2.5 | 2.5.7-lp151.4.6.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| red hat:candlepin | 0:4.0.9-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:foreman | 0:2.5.2.17-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-aiohttp | 0:3.7.4-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-ecdsa | 0:0.13.3-2.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:python3-pyyaml | 0:5.4.1-1.el7pc · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:satellite-capsule | 0:6.10.0-3.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-actionpack | 0:6.0.3.7-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-activerecord-session_store | 0:2.0.0-1.el7sat · Red Hat:satellite:6.10::el7 | Package registry (OSV) |
| red hat:tfm-rubygem-nokogiri | 0:1.11.3-2.el7sat · Red Hat:satellite_capsule:6.10::el7 | Package registry (OSV) |
| RubyGems:rake | 12.3.3 | Package registry (OSV) |
| suse:ruby2.5 | 2.5.7-4.8.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:rubygem-rake | 10.3.2-9.7.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- Administrator privileges are required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.
The bug in code
The whole CWE-78 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const host = req.body.host;exec("ping -c 1 " + host, onResult);Fixed
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Command DelimitersCAPEC-15likelihood: High · High
- Exploiting Multiple Input Interpretation LayersCAPEC-43likelihood: Medium · High
- Argument InjectionCAPEC-6likelihood: High · High
- OS Command InjectionCAPEC-88likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html
- lists.debian.org/debian-lts-announce/2020/02/msg00026.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/523CLQ62VRN3VVC52KMPTROCCKY4Z36B/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VXMX4ARNX2JLRJMSH4N3J3UBMUT5CI44/
- usn.ubuntu.com/4295-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.