Skip to content
Fencer Vulns
high 8.6

CVE-2020-8161 json

Directory traversal in Rack::Directory app bundled with Rack

published 2020-07-02 6 y ago modified 2026-09-10 1 mo ago also GHSA-5f9h-9pjv-v6j7 , EUVD-2020-0537

cvss
8.6
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.4%
EPSS 3.4% chance of exploitation in 30 days, percentile 88%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems rack 2.1.3
  • rack_project rack 2.2.0
  • ruby-rack Debian 14, Debian 13, Debian 12 2.1.1-5

debian advisories DEBIAN-CVE-2020-8161

  • ruby-rack Ubuntu 16.04 LTS 1.6.4-3ubuntu0.2
  • ruby-rack Ubuntu 18.04 LTS 1.6.4-4ubuntu0.2
  • ruby-rack Ubuntu 20.04 LTS 2.0.7-2ubuntu0.1

ubuntu advisories UBUNTU-CVE-2020-8161

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • tfm satellite capsule 6.8, satellite 6.8 6.1-1.el7sat
  • kobo satellite capsule 6.8, satellite 6.8 0.5.1-1.el7sat
  • pulp satellite capsule 6.8, satellite 6.8 2.21.3-1.el7sat
  • gofer satellite capsule 6.8, satellite 6.8 2.12.5-7.el7sat
  • future satellite capsule 6.8, satellite 6.8 0.16.0-11.el7sat
  • ostree satellite capsule 6.8, satellite 6.8 2017.1-2.atomic.el7
  • foreman satellite capsule 6.8, satellite 6.8 2.1.2.19-1.el7sat
  • katello satellite capsule 6.8, satellite 6.8 3.16.0-1.el7sat

red hat advisories RHSA-2020:4366

  • rubygem-rack SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +4 more 2.0.8-150000.3.9.1
  • rubygem-rack OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8, OpenStack Cloud 7 1.6.13-3.8.1

suse advisories SUSE-SU-2022:3347-1SUSE-SU-2020:2678-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-8161 updated cvss 0.0

rubygem-rack: directory traversal in Rack::Directory

  • Red Hat CloudForms Management Engine 5 cfme-gemset, cfme-amazon-smartstate
    affected: no fix available “Fix deferred”
  • Red Hat OpenStack Platform 10 (Newton) Operational Tools rubygem-rack
    affected: no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 13 (Queens) Operational Tools rubygem-rack
    affected: no fix available “Fix deferred”
  • Red Hat Satellite 6 tfm-ror52-rubygem-rack
    affected: no fix available
  • Red Hat Storage 3 rubygem-rack
    affected: no fix available “Fix deferred”
  • Red Hat Satellite 6.8 tfm 6.1-1.el7sat, kobo 0.5.1-1.el7sat, pulp 2.21.3-1.el7sat, gofer 2.12.5-7.el7sat, receptor 0.6.3-1.el7ar, future 0.16.0-11.el7sat, +488 more Red Hat Satellite Capsule 6.8 tfm 6.1-1.el7sat, kobo 0.5.1-1.el7sat, pulp 2.21.3-1.el7sat, gofer 2.12.5-7.el7sat, future 0.16.0-11.el7sat, katello 3.16.0-1.el7sat, +232 more
    fixed: vendor fix RHSA-2020:4366

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.36% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.1 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
rubygems rack
<2.1.3
2.1.3

Affected products

  • n/a https://github.com/rack/rack

Classification

Weakness
  • CWE-548 Exposure of Information Through Directory Listing
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.