cve.bz

CVE-2020-8161 Path traversal

8.6 highEPSS 3.4%Fix available

High (8.6). EPSS 3.4% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.1.3.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
3.4% (unchanged from 3.4% a week ago; 3.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-548 Exposure of Information Through Directory Listing
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8161?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack_project:rackbefore 2.2.0
debian:debian_linux9.0
debian:debian_linux10.0
canonical:ubuntu_linux18.04

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5f9h-9pjv-v6j7RubyGemsrack<2.1.32.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ruby-rack1.5.2-3+deb8u3DLA-2216-1
Debian9ruby-rack1.6.4-4+deb9u2DLA-2275-1
Debian10ruby-rack2.0.6-3+deb10u2DLA-3298-1
Debian12, 13, 14ruby-rack2.1.1-5DEBIAN-CVE-2020-8161
Ubuntu16.04:LTSruby-rack1.6.4-3ubuntu0.2UBUNTU-CVE-2020-8161 USN-4561-2
Ubuntu18.04:LTSruby-rack1.6.4-4ubuntu0.2UBUNTU-CVE-2020-8161 USN-4561-1
Ubuntu20.04:LTSruby-rack2.0.7-2ubuntu0.1UBUNTU-CVE-2020-8161 USN-4561-2
Red Hatsatellite:6.8::el7createrepo_c, createrepo_c-libs, createrepo_c-debuginfo and 1 more0:0.7.4-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7keycloak-httpd-client-install, python2-keycloak-httpd-client-install0:1.2.2-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7pcp-mmvstatsd0:0.4-2.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7python-idna-ssl, python3-idna-ssl0:1.1.0-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-prometheus-client, python3-prometheus-client0:0.7.1-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-receptor-satellite, python3-receptor-satellite0:1.2.0-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7python-six, python3-six0:1.11.0-8.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7python-yarl, python3-yarl, python-yarl-debuginfo0:1.4.2-2.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7qpid-cpp, qpid-qmf, qpid-tools and 6 more0:1.36.0-28.el7amqRHSA-2020:4366
Red Hatsatellite:6.8::el7receptor0:0.6.3-1.el7arRHSA-2020:4366
Red Hatsatellite:6.8::el7rhel8-kickstart-setup, rh-postgresql12-postgresql-evr0:0.0.2-1.el7satRHSA-2020:4366
Red Hatsatellite:6.8::el7rubygem-fast_gettext, tfm-rubygem-rack-test0:1.1.0-4.el7satRHSA-2020:4366
188 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 2 morerubygem-rack2.0.8-150000.3.9.1SUSE-SU-2022:3347-1
SUSEOpenStack Cloud 7, OpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9rubygem-rack1.6.13-3.8.1SUSE-SU-2020:2678-1
openSUSELeap 15.3, Leap 15.4rubygem-rack2.0.8-150000.3.9.1SUSE-SU-2022:3347-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Because the following products package the flawed code, but do not use its functionality (Rack::Directory), their impact has been reduced to 'Low':

* Red Hat CloudForms

* Red Hat OpenStack Platform 13.0 Operational Tools

* Red Hat Gluster Storage 3

Red Hat Satellite 6 ships the affected version of RubyGem Rack and is vulnerable to the flaw. However, because attackers require shell access to exploit the vulnerability, Red Hat Product Security has rated this issue as having the security impact of Low for Satellite. A future update might address this issue.

ProductPackageStateAdvisory
Red Hat Satellite 6.8 for RHEL 7ansible-collection-redhat-satellite-0:1.3.0-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-foreman_scap_client-0:0.0.5-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-insights-client-0:1.7.1-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansiblerole-satellite-receptor-installer-0:0.6.13-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7ansible-runner-0:1.4.6-1.el7arFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7candlepin-0:3.1.21-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7createrepo_c-0:0.7.4-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-0:2.1.2.19-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-bootloaders-redhat-0:202005201200-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-discovery-image-0:3.6.7-1Fixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-discovery-image-service-0:1.0.0-3.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-installer-1:2.1.2.8-1.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-proxy-0:2.1.2-2.el7satFixed 2020-10-27RHSA-2020:4366
Red Hat Satellite 6.8 for RHEL 7foreman-selinux-0:2.1.2.3-1.el7satFixed 2020-10-27RHSA-2020:4366
CloudForms Management Engine 5cfme-amazon-smartstateFix deferred
CloudForms Management Engine 5cfme-gemsetFix deferred
Red Hat OpenStack Platform 10 (Newton) Operational Toolsrubygem-rackOut of support scope
Red Hat OpenStack Platform 13 (Queens) Operational Toolsrubygem-rackFix deferred
Red Hat Satellite 6tfm-ror52-rubygem-rackAffected
Red Hat Storage 3rubygem-rackFix deferred
365 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8161.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON