CVE-2020-8161 Directory traversal in Rack::Directory app bundled with Rack
An attacker can exploit a directory traversal flaw in the Rack::Directory app to access unauthorized files and disclose sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-8161?
CVE-2020-8161 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 2 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A directory traversal vulnerability exists in rack < 2.2.0 that allows an attacker perform directory traversal vulnerability in the Rack::Directory app that is bundled with Rack which could result in information disclosure.
Which versions are affected by CVE-2020-8161?
2 open source packages ship an affected version, including rack. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
rack RubyGems | All versions | 2.1.3 |
rack RubyGems | All versions | 2.1.3 |
Products include Canonical Ubuntu Linux, Debian Debian Linux, Rack Project Rack.
How do I fix CVE-2020-8161?
Upgrade rack to 2.1.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-8161 being exploited?
There is no known exploitation of CVE-2020-8161 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2020-8161, DLA-2216-1, GHSA-5f9h-9pjv-v6j7, UBUNTU-CVE-2020-8161.