VYPR
High severityNVD Advisory· Published Jul 2, 2020· Updated Aug 4, 2024

CVE-2020-8163

CVE-2020-8163

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2020-8163 is a code injection vulnerability in Ruby on Rails <5.0.1 allowing RCE when an attacker controls the `locals` argument of a `render` call.

CVE-2020-8163 describes a code injection vulnerability in Ruby on Rails versions prior to 5.0.1. The root cause is that the framework did not properly validate or restrict the names of local variables passed via the locals argument in the render method [1][3]. This allows an attacker who can control the names of these local variables to inject arbitrary Ruby code, leading to remote code execution (RCE).

Exploitation

To exploit this vulnerability, an attacker must be able to control the locals hash passed to a render call, specifically the keys (variable names) within that hash [1]. This is typically possible if user-supplied input is directly passed to the render method as part of the locals parameter. The attacker does not need authentication if the vulnerable endpoint is accessible without credentials [3].

Impact

Successful exploitation grants the attacker the ability to execute arbitrary Ruby code on the server, potentially leading to full compromise of the application, data theft, or further lateral movement [1].

Mitigation

The vulnerability is fixed in Rails 4.2.11.3 and 5.0.1 [2][3]. Users of earlier versions should upgrade as soon as possible. For those unable to upgrade, a patch is available, and a workaround is to ensure all user-provided local names are alphanumeric [3].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
actionviewRubyGems
< 4.2.11.34.2.11.3

Affected products

11

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

8

News mentions

0

No linked articles in our index yet.