RULE(RULE ID:332457)

Rule General Information
Release Date: 2021-01-29
Rule Name: Ruby on Rails locals render Remote Code Execution Vulnerability (CVE-2020-8163)
Severity:
CVE ID:
Rule Protection Details
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.
Impact: An attacker can execute arbitrary code via a successful exploit in the context of the vulnerable software.
Affected OS: Windows, Linux, Others
Reference: http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html
https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0
https://hackerone.com/reports/304805
https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html
Solutions
The vendors have released upgrade patches to fix vulnerabilities, please visit:
https://github.com/rails/rails/commit/b395acf4673045c03fc7845b5103b801f0a5950d