Security Resilience

CVE-2026-22860

Path Traversal in Rack ≤ 2.2.22

Published
18 February 2026
Modified
15 July 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.0090 58th percentile
Risk Priority 59 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-22860 is a high-severity Path Traversal (CWE-22) vulnerability in Rack. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique /etc/passwd and /etc/shadow (T1003.008); ranked in the top 42% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and CM-6 (Configuration Settings) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-22860 is a path traversal vulnerability in Rack, a modular Ruby web server interface. The issue affects the `Rack::Directory` component in versions prior to 2.2.22, 3.1.20, and 3.2.5. It stems from a flawed path check that relies on a string prefix match on the expanded path, enabling attackers to bypass the configured root directory. For example, a request like `/../root_example/` can escape the root if the target path begins with the root string, resulting in unauthorized directory listings outside the intended scope. The vulnerability is rated 7.5 on the CVSS 3.1 scale (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) and maps to CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and CWE-548 (Exposure of Information Through Directory Listing).

Remote attackers without authentication can exploit this vulnerability by sending specially crafted HTTP requests to a Rack application serving directory listings. Successful exploitation allows listing of directory contents beyond the configured root, potentially exposing sensitive files and information on the server filesystem. No user interaction is required, and the attack is straightforward due to low complexity and network accessibility.

The Rack security advisory (GHSA-mxw3-3hh2-x2mh) and the fixing commit (75c5745c286637a8f049a33790c71237762069e7) recommend upgrading to Rack versions 2.2.22, 3.1.20, or 3.2.5, which implement a corrected path normalization check to prevent root escapes.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Rack is a modular Ruby web server interface. Prior to versions 2.2.22, 3.1.20, and 3.2.5, `Rack::Directory`’s path check used a string prefix match on the expanded path. A request like `/../root_example/` can escape the configured root if the target path…

more

starts with the root string, allowing directory listing outside the intended root. Versions 2.2.22, 3.1.20, and 3.2.5 fix the issue.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1003.008 /etc/passwd and /etc/shadow Credential Access
Adversaries may attempt to dump the contents of <code>/etc/passwd</code> and <code>/etc/shadow</code> to enable offline password cracking.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1213.003 Code Repositories Collection
Adversaries may leverage code repositories to collect valuable information.
T1554 Compromise Host Software Binary Persistence
Adversaries may modify host software binaries to establish persistent access to systems.
T1593 Search Open Websites/Domains Reconnaissance
Adversaries may search freely available websites and/or domains for information about victims that can be used during targeting.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-42007Shared CWE-22, CWE-548
CVE-2025-4807Shared CWE-22, CWE-548
CVE-2024-1708Shared CWE-22
CVE-2024-37108Shared CWE-22
CVE-2025-53951Shared CWE-22
CVE-2024-12083Shared CWE-22
CVE-2025-42894Shared CWE-22
CVE-2024-55401Shared CWE-22
CVE-2023-45867Shared CWE-22
CVE-2026-28078Shared CWE-22

Affected Assets

rack
rack
≤ 2.2.22 · 3.0.0 — 3.1.20 · 3.2.0 — 3.2.5

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Requires secure baseline settings that disable directory listing on servers and file shares.

Restricts unnecessary server features such as automatic directory indexing.

Input validation directly neutralizes special path elements before pathname construction occurs.

Controls information flows so directory contents are not disclosed to unauthorized recipients.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-01 mostly match
blocks

Hardened baselines and config management directly disable directory listing by default.

ID.AM-08 partial match
blocks

Lifecycle management includes applying secure configurations that would prevent directory exposure.

ID.RA-01 partial match
blocks

Vulnerability scanning can discover exposed directories so they can be remediated.

PR.AA-05 partial match
blocks

Least-privilege access rules can restrict who sees directory contents but do not address the listing feature itself.

PR.PS-02 partial match
blocks

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches path traversal via static/dynamic analysis.

blocks

A.8.3 blocks exploitation by unauthenticated/unauthorized users through its access enforcement mechanisms (authentication requirements, per-identity access rights), but the directory listing weakness itself remains present and exploitable by any authenticated user with legitimate access to that directory — the control does not address the root cause of directory indexing being enabled, so the information exposure (file names, structure, creation times) survives for users who pass the access check.

removes

A.8.9's mechanism — secure configuration templates that disable directory indexing, monitoring actual vs. target configurations, and correcting deviations — directly removes existing directory-listing exposures when applied to a previously unmanaged system; the remainder is systems or services outside the managed configuration scope (shadow IT, unmanaged third-party services) where the clause's monitoring never reaches.

prevents

Secure coding standards explicitly forbid unsafe path construction and mandate safe APIs.

prevents

Outsourced-development contracts requiring secure design, coding and testing reduce the introduction of directory-listing defects, but fallible supplier practices and incomplete coverage leave a substantial remainder.

finds

A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. Path traversal commonly surfaces as CVEs in third-party components (many examples in the CWE-22 record), so A.8.8 finds that disclosed share; first-party path-traversal defects in the organization's own code are invisible to vulnerability scanning and management, which is the same remainder that caps A.8.8 -> CWE-89 at `partial`.

References