← back
CVE-2016-0752

CVE-2016-0752

CVSS 7.5 HIGHEPSS 95.5%● KEVCWE-22
In short

A flaw in Ruby on Rails allows attackers to read files they shouldn't access by using special path tricks (like ".." in filenames) when the application renders templates. This happens when developers don't properly restrict what files can be displayed.

Technical detail

Directory traversal vulnerability in Rails Action View via improper path validation in the render method. Attackers can bypass pathname restrictions using dot-dot sequences to traverse the filesystem and access arbitrary files. Affects Rails 3.2.x, 4.0.x, 4.1.x, 4.2.x, and 5.x before specific patch versions.

Summary generated and translated by AI from the official description.
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
n/a · n/a
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →