CVE-2026-125110

Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch

Published Nov 9, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Rack is a modular Ruby web server interface. Prior to 2.2.25, 3.1.23, and 3.2.8, Rack::Static serves a path after Utils.clean_path_info normalization but evaluates header_rules against a path that is only URL-decoded. An unauthenticated attacker can request a known file through raw or percent-encoded dot segments and receive it without path-specific security headers such as Content-Disposition or Content-Security-Policy. Applications that do not use path-specific header_rules are not affected. This issue is fixed in versions 2.2.25, 3.1.23, and 3.2.8.

Analysis

AI-generated

Technical impact

Rack::Static serves content after normalizing the path with Utils.clean_path_info but evaluates header_rules against a path that is only URL decoded, creating a mismatch that is a classic example of CWE‑180 (Path Manipulation After URL Decoding) and CWE‑41 (URL Normalization). An unauthenticated attacker can trigger this by requesting a file with raw or percent‑encoded dot segments, causing that file to be returned without any of the security headers that would normally be applied such as Content‑Disposition or Content‑Security‑Policy. This does not allow code execution, but it removes a layer of defense that can lead to information disclosure or cross‑site scripting if the missing headers are relied upon for security. The vulnerability is therefore an information‑disclosure type weakness, involving the omission of security controls.

Affected Systems

The flaw exists in Rack versions earlier than 2.2.25, 3.1.23, and 3.2.8. It is limited to the Rack::Static component and only affects applications that enable path‑specific header_rules. Applications that do not use such header_rules, or that have not applied the vulnerable code, are not impacted. The vendor is Rack, the product is the Ruby Rack web server interface.

Risk and Exploitability

With a CVSS score of 5.3 the vulnerability is considered moderate. Its exploitability is high for web applications that use Rack::Static with path‑specific header_rules, because the attack requires only an unauthenticated HTTP request containing a crafted URL. Web applications that do not employ path‑specific header_rules are not affected. EPSS score of < 1% indicates a very low but nonzero exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, so there is no evidence of current widespread exploitation. Nevertheless, because the flaw allows an attacker to obtain files without the expected security headers, the risk to confidentiality and integrity of served content warrants prompt remediation. The likely attacker profile is a remote web attacker with knowledge of the application directory layout.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Rack to version 2.2.25, 3.1.23, or 3.2.8 or later, which includes a fix for the header_rules mismatch.
  • Verify that Rack::Static uses path‑specific header_rules when serving content, ensuring that security headers are applied to all served files.
  • Audit existing served files or templates to confirm that required security headers (e.g., Content‑Disposition, CSP, X‑Content‑Type‑Options) are present and fallback headers are set for static assets.

Generated by OpenCVE AI on November 15, 2026 at 09:26 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wvg4-6p58-3gh3 Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rack
Rack rack
Vendors & Products Rack
Rack rack
Type Values Removed Values Added
Description Rack is a modular Ruby web server interface. Prior to 2.2.25, 3.1.23, and 3.2.8, Rack::Static serves a path after Utils.clean_path_info normalization but evaluates header_rules against a path that is only URL-decoded. An unauthenticated attacker can request a known file through raw or percent-encoded dot segments and receive it without path-specific security headers such as Content-Disposition or Content-Security-Policy. Applications that do not use path-specific header_rules are not affected. This issue is fixed in versions 2.2.25, 3.1.23, and 3.2.8.
Title Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
Weaknesses CWE-180
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-180

    Incorrect Behavior Order: Validate Before Canonicalize

  • CWE-41

    Improper Resolution of Path Equivalence

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 14, 2026, 2:25 AM
Reserved
Nov 9, 2026, 5:45 PM
Status
Awaiting Analysis
Published
Nov 9, 2026, 10:18 PM
Modified
Nov 14, 2026, 3:17 AM
Severity
Moderate
Public date
Nov 9, 2026, 10:00 PM