Vulnerability · Published Jul 2, 2020 · Assigned by hackerone
CVE-2020-8163
High 8.8
In plain English
A high-severity code injection in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 82.5% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)8.8High
Exploit odds (30 days)82.5%top 0.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling2Nuclei, Public PoC
Official description
The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:5.2.0+dfsg-2 | DEBIAN-CVE-2020-8163 |
| Debian:13 | rails | 2:5.2.0+dfsg-2 | DEBIAN-CVE-2020-8163 |
| Debian:14 | rails | 2:5.2.0+dfsg-2 | DEBIAN-CVE-2020-8163 |
| RubyGems | actionview | 4.2.11.3 | GHSA-cr3x-7m39-c6jq |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2020-8163 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2020-8163 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2020-8163 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2020-8163 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 4.2.11.2 |
Weakness: CWE-94
References
- https://hackerone.com/reports/304805 x_refsource_MISC
- https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0 x_refsource_MISC
- [debian-lts-announce] 20200720 [SECURITY] [DLA 2282-1] rails security update mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html x_refsource_MISC