#VU8569 Path traversal in Ruby on Rails


Vulnerability identifier: #VU8569

Vulnerability risk: Medium

CVSSv3.1: 5.1 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2016-2097

CWE-ID: CWE-22

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Ruby on Rails
Universal components / Libraries / Scripting languages

Vendor: Rails

Description
The vulnerability allows a remote attacker to read arbitrary files on the system.

The vulnerability exists due to improper input validation in Action View. A remote attacker can send a specially crafted request, containing directory traversal sequences (e.g. "../") and view contents of arbitrary file on vulnerable system.

The vulnerability exists due to incomplete fix of SB2016021701.

Mitigation
Update to version 3.2.22.2 or 4.1.14.2.

Vulnerable software versions

Ruby on Rails: 3.2.0 rc1 - 3.2.22.1, 4.0.0 rc1 - 4.0.13, 4.1.0 rc1 - 4.1.14.1, 4.2.0 rc1 - 4.2.5


External links
http://rubygems.org/gems/railslts-version/versions/3.2.22.2
http://access.redhat.com/errata/RHSA-2016:0454


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability