CVE-2020-8163 Remote code execution via user-provided local names in ActionView

High 8.8 Published Updated

Attackers can execute arbitrary code by controlling the locals argument in render calls within vulnerable Ruby on Rails versions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8163?

CVE-2020-8163 is a high-severity code injection vulnerability in Debian Debian Linux, published on 2 Jul 2020. Any signed-in user can exploit it over the network, with no action from the victim.

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.

Weakness: CWE-94

Which versions are affected by CVE-2020-8163?

3 open source packages ship an affected version, including actionview and rails. It affects 2 products.

PackageAffectedFixed in
actionview RubyGemsAll versions4.2.11.3
actionview RubyGemsAll versions4.2.11.3
rails BitnamiAll versions5.0.1
Linux distribution packages (8)
rubygem-actionview-4_2 SUSE:OpenStack Cloud 6-LTSSAll versions4.2.9-9.9.1
rubygem-activesupport-4_2 SUSE:OpenStack Cloud 6-LTSSAll versions4.2.9-7.6.1
rubygem-actionview-4_2 SUSE:OpenStack Cloud 7All versions4.2.9-9.9.1
rubygem-activesupport-4_2 SUSE:OpenStack Cloud 7All versions4.2.9-7.6.1
rubygem-actionview-4_2 SUSE:OpenStack Cloud Crowbar 8All versions4.2.9-9.9.1
rubygem-activesupport-4_2 SUSE:OpenStack Cloud Crowbar 8All versions4.2.9-7.6.1
rubygem-actionview-4_2 SUSE:OpenStack Cloud Crowbar 9All versions4.2.9-9.9.1
rubygem-activesupport-4_2 SUSE:OpenStack Cloud Crowbar 9All versions4.2.9-7.6.1

Products include Debian Debian Linux, Rubyonrails Rails.

How do I fix CVE-2020-8163?

Upgrade actionview to 4.2.11.3 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-8163 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-8163 exists.

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 3 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as BIT-rails-2020-8163, DEBIAN-CVE-2020-8163, GHSA-cr3x-7m39-c6jq, SUSE-SU-2020:2140-1, UBUNTU-CVE-2020-8163.

Is CVE-2020-8163 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free