CVE-2026-22860

7.5

Rack · Rack

A path traversal vulnerability in Rack allows unauthenticated attackers to escape the configured root directory and perform unauthorized directory listing via crafted URL requests.

Executive summary

The Rack Ruby web server interface contains a critical path traversal vulnerability that permits unauthenticated remote attackers to access sensitive directory listings outside the intended root path.

Vulnerability

The vulnerability exists in the Rack::Directory component, which uses an insecure string prefix match to validate paths. An unauthenticated attacker can supply a specially crafted path, such as one containing parent directory traversal sequences, to bypass security restrictions and expose the contents of the underlying filesystem.

Business impact

Successful exploitation of this flaw allows attackers to view sensitive files or directory structures that should be restricted. This unauthorized information disclosure can lead to the exposure of configuration files, source code, or internal system paths, significantly aiding further exploitation efforts. Given the CVSS score of 7.5, this represents a high severity risk to the confidentiality of the application environment.

Remediation

Immediate Action: Update the Rack gem to version 2.2.22, 3.1.20, or 3.2.5 depending on your current branch.

Proactive Monitoring: Review web server access logs for anomalous request patterns, specifically those containing directory traversal sequences like double dots or unexpected path prefixes.

Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to inspect and block requests containing path traversal sequences or attempts to access restricted directory paths.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

This vulnerability presents a clear risk of information disclosure that is easily triggered by remote, unauthenticated actors. Organizations utilizing the Rack interface must prioritize the application of the provided security patches to the relevant versions to prevent unauthorized access to the server filesystem. Failure to remediate may expose critical infrastructure to reconnaissance and subsequent exploitation.

Sources