CVE-2020-8161
Ruby vulnerability analysis and mitigation

Overview

A directory traversal vulnerability (CVE-2020-8161) was discovered in Rack versions prior to 2.2.0. The vulnerability exists in the Rack::Directory app bundled with Rack, which was disclosed on May 13, 2020. The issue affects applications using Rack::Directory component, while applications not using this component remain unaffected (Rails Security).

Technical details

The vulnerability stems from incorrect handling of certain paths in the Rack::Directory component. When specific directories exist in a directory managed by Rack::Directory, the flaw allows attackers to perform directory traversal outside of the root specified in the Rack::Directory initializer. The vulnerability has been assigned a CVSS 3 Severity Score of 8.6 (High) (Ubuntu CVE).

Impact

If exploited, this vulnerability could allow an attacker to read the contents of files on the server that were outside of the root specified in the Rack::Directory initializer, potentially leading to unauthorized information disclosure (Rails Security).

Exploitability

The vulnerability requires network access but no authentication or user interaction. The attack complexity is considered low, making it relatively straightforward to exploit in environments where Rack::Directory is in use (Ubuntu CVE).

Mitigation and workarounds

The vulnerability has been fixed in Rack versions 2.1.3 and 2.2.0 or later. For developers unable to immediately upgrade, the recommended workaround is to avoid using Rack::Directory in their applications. Various Linux distributions have also released security updates to address this vulnerability, including Ubuntu (1.6.4-4ubuntu0.2 for 18.04 LTS) and Debian (Rails Security, Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-55107CRITICAL10
  • Ruby logoRuby
  • kobako
NoYesAug 18, 2026
CVE-2026-61666HIGH8.9
  • Ruby logoRuby
  • pghero-fips
NoYesAug 17, 2026
CVE-2026-73648MEDIUM5.1
  • Ruby logoRuby
  • ruby3.3-rails-8.0
NoYesAug 13, 2026
CVE-2026-73426MEDIUM4.6
  • JavaScript logoJavaScript
  • ruby3.4-rails-8.1
NoYesAug 18, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management