Loading...
Skip to main content

CVE-2020-8161

HIGH

Directory traversal in Rack::Directory app bundled with Rack

Published July 6, 2020Updated February 18, 2024Source: osv

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.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update rack to 2.1.3 or later
gem install rack -v 2.1.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
rack
rubygems
0.1.0, 0.2.0, 0.3.0, 0.4.0 (+83 more)2.1.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2020-8161?
Directory traversal in Rack::Directory app bundled with Rack This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2020-8161?
CVE-2020-8161 affects rack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-8161 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-5f9h-9pjv-v6j7

Related CVEs

  • CVE-2022-30123
    CRITICAL

    Possible shell escape sequence injection vulnerability in Rack

  • CVE-2023-27530
    HIGH

    Rack has possible DoS Vulnerability in Multipart MIME parsing

  • CVE-2025-59830
    HIGH

    Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters

  • CVE-2025-61772
    HIGH

    Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)

  • CVE-2024-25126
    MEDIUM

    Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)

  • CVE-2025-49007
    MEDIUM

    ReDoS Vulnerability in Rack::Multipart handle_mime_head

  • CVE-2026-25500
    MEDIUM

    Stored XSS in Rack::Directory via javascript: filenames rendered into anchor href

  • CVE-2026-34826
    MEDIUM

    Rack's multipart byte range processing allows denial of service via excessive overlapping ranges

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies