Rails < 4.2.11.3 / 5.x < 5.0.1 Remote Code Execution

high Web App Scanning Plugin ID 112720

Synopsis

Rails < 4.2.11.3 / 5.x < 5.0.1 Remote Code Execution

Description

There is a code injection vulnerability in versions of Rails prior to 4.2.11.3 and 5.x prior to 5.0.1 that would allow an attacker who controlled the "locals" argument of a "render" call to perform a Remote Code Execution.

Solution

Upgrade Rails to 4.2.11.2, 5.0.1 or later.

See Also

https://weblog.rubyonrails.org/2020/5/15/Rails-4-2-11-2-has-been-released/

https://weblog.rubyonrails.org/2020/5/16/rails-4-2-11-3-has-been-released/

Plugin Details

Severity: High

ID: 112720

Type: remote

Published: 3/12/2021

Updated: 9/7/2021

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P

CVSS Score Source: CVE-2020-8163

CVSS v3

Risk Factor: High

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2020-8163

Vulnerability Information

CPE: cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 6/26/2018

Reference Information

CVE: CVE-2020-8163