Ruby on Rails Directory Traversal Vulnerability
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…
Severity = CVSS. Probability = EPSS (FIRST). Exploitation = public signals: KEV, EUVD, ransomware, EPSS above 10 %, no account required.
Exploitation probability EPSS · FIRST
Exploitation signals 4 / 5
- KEV catalog (CISA)25 Mar 2022
- Exploited in EUVD (ENISA)25 Mar 2022
- Used by ransomwareno
- EPSS above 10 %95.5%
- No account, over the networkyes
What to do
Fix
Update to a fixed version: 4.1.14.1 4.2.5.1 3.2.22.1
CISA guidance: Apply updates per vendor instructions.
Meanwhile
Take the service off the internet or restrict access to it, watch the logs and look for signs of compromise.
Manufacturers (CRA)
Exploited vulnerability in your product: early warning to ENISA within 24 h, then notification within 72 h (Article 14 of the Cyber Resilience Act). The CRA explained
Description ENISA EUVD
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.
Affected products
Open source packages OSV
- actionpackRubyGems · GHSA-xrr4-p6fq-hjg7fixed in 4.1.14.1
- actionpackRubyGems · GHSA-xrr4-p6fq-hjg7fixed in 4.2.5.1
- actionpackRubyGems · GHSA-xrr4-p6fq-hjg7fixed in 3.2.22.1
- actionviewRubyGems · GHSA-xrr4-p6fq-hjg7fixed in 4.1.14.1
- actionviewRubyGems · GHSA-xrr4-p6fq-hjg7fixed in 4.2.5.1
Timeline
-
Published
-
Exploitation reported (ENISA)
-
Added to the KEV catalog
-
CISA remediation due date
-
EPSS peak: 95.5%
References
Other exploited vulnerabilities from the same vendor
- CVE-2019-5418Rails Ruby on Rails Path Traversal Vulnerability8.4 · Background exploitation
- CVE-2014-0130Ruby on Rails Directory Traversal Vulnerability7.0 · Background exploitation