Ruby on Rails Directory Traversal Vulnerability
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails before 3.2.18, 4.0.x before 4.0.5, and 4.1.x before 4.1.1, when certain route globbing configurations…
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 %53.7%
- No account, over the networkyes
What to do
Fix
Update to a fixed version: 3.2.18 4.0.5 4.1.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 actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails before 3.2.18, 4.0.x before 4.0.5, and 4.1.x before 4.1.1, when certain route globbing configurations are enabled, allows remote attackers to read arbitrary files via a crafted request.
Affected products
Open source packages OSV
- actionpackRubyGems · GHSA-6x85-j5j2-27jxfixed in 3.2.18
- actionpackRubyGems · GHSA-6x85-j5j2-27jxfixed in 4.0.5
- actionpackRubyGems · GHSA-6x85-j5j2-27jxfixed in 4.1.1
Timeline
-
Published
-
Exploitation reported (ENISA)
-
Added to the KEV catalog
-
CISA remediation due date
-
EPSS peak: 53.7%
References
Other exploited vulnerabilities from the same vendor
- CVE-2019-5418Rails Ruby on Rails Path Traversal Vulnerability8.4 · Background exploitation
- CVE-2016-0752Ruby on Rails Directory Traversal Vulnerability8.3 · Background exploitation