Code injection in Ruby on Rails - CVE-2016-2098

 

Code injection in Ruby on Rails - CVE-2016-2098

Published: March 16, 2016 / Updated: April 19, 2024


Vulnerability identifier: #VU8567
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-2098
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation in "render()" function. A remote attacker can send a specially crafted request to the vulnerable application and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.

Affected software

Ruby on Rails
Debian Linux
Fedora
rubygem-actionpack
rubygem-actionview

How to mitigate CVE-2016-2098

Update to version 3.2.22.2, 4.1.14.2 or 4.2.5.2.

rubygem-actionpack - addressed in versions 4.2.0-4.fc22, 4.2.3-5.fc23
rubygem-actionview - addressed in versions 4.2.0-5.fc22, 4.2.3-5.fc23

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins