Actively exploited vulnerability

Rails Ruby on Rails: file access flaw under attack

CVE-2016-0752 · Ruby on Rails Directory Traversal Vulnerability

Business software7.5 high

What is affected

Rails Ruby on Rails is mostly run by companies, schools and public bodies, not on home computers. You are unlikely to have it yourself, but organisations that hold your data may. Breaches that start with flaws like this one are how personal data ends up leaked.

Directory traversal vulnerability in Action View in Ruby on Rails allows remote attackers to read arbitrary files.

CISA's description

What an attacker can do

This is a file access flaw. It lets an attacker read or write files they should never reach, such as configuration files that hold passwords, or upload a malicious file that the system then runs.

How it is reached
Over the internet or network
Access the attacker needs
No account needed
Does the victim have to do something?
No, works without the victim doing anything

What to do

  1. At home: nothing to install. Keep your own devices updated and use a different password for every service, so that a breach at one organisation does not open your other accounts.
  2. If you administer Rails Ruby on Rails at work: apply the vendor's fix or mitigation now and review logs for signs of compromise, because the flaw was being exploited before it was listed.
  3. If the product is past its support date and no fix exists, take it off the internet or retire it.

Apply updates per vendor instructions.

Action required by CISA for US federal agencies

How urgent is it

CISA added this vulnerability to its Known Exploited Vulnerabilities catalogue on March 25, 2022, which means there is reliable evidence of attacks in the wild. US federal agencies must fix it by April 15, 2022, a deadline that has already passed. That deadline does not bind anyone else, but it shows how seriously the agency rates it.

The EPSS model estimates a 96% probability that this flaw will be exploited somewhere in the next 30 days. That is higher than 99.9% of all scored vulnerabilities.

Its CVSS severity score is 7.5 out of 10 (high), as recorded in the US National Vulnerability Database.

Technical 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.

NIST National Vulnerability Database
5,441 members already hereReading, writing, commenting and voting. 0 verified · 166 joined this year