CVE-2020-8163The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument…
- 8.8HighCVSS base score
- 82.5%Exploitation in 30 daysEPSS · top 0.3% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template and an Exploit-DB entry for it.
Show the exploits2
Nuclei templates1 template
- Ruby on Rails <5.0.1 - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2020/CVE-2020-8163.yamlSeverity high
Exploit-DB1 entry
- Rails 5.0.1 - Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 48716webapps, rubypublished 26 Jul 2020Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By hackerone
- 5 months later
· 5 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 82.5% · top 0.3% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
https://github.com/rails/rails
- affected Fixed in 4.2.11.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactionviewGHSA-cr3x-7m39-c6jq (opens in a new tab)
References
References4
- https://hackerone.com/reports/304805 (opens in a new tab)x_refsource_MISCx_transferred
- https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0 (opens in a new tab)x_refsource_MISCx_transferred
- [debian-lts-announce] 20200720 [SECURITY] [DLA 2282-1] rails security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-0551 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cr3x-7m39-c6jq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-8163)Record last updated .