CVE-2026-125110
Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
Also known as GHSA-wvg4-6p58-3gh3
Mitigation
- Upgrade rack to one of 2.2.25, 3.1.23, 3.2.8 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package rack (< 2.2.25)
Vulnerability facts
- Affected
- rack < 2.2.25
- Fixed in
- 2.2.25, 3.1.23, 3.2.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, GitHub)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.43% chance of exploitation in 30 days (percentile 29, 2026-11-28)
- CWE
- CWE-180
- Modified
Description
## Summary `Rack::Static` normalizes the request path with `Utils.clean_path_info` when deciding which file to serve, but matches `header_rules` against a path that is only URL-decoded. A request containing dot segments, raw or percent-encoded, is served the normalized target file while the header rules for that file's location are not applied. This allows an attacker to receive a protected static file without the security headers configured for it. ## Details `Rack::Static#call` computes the served path as `Utils.clean_path_info(Utils.unescape_path(path))`. `Rack::Static#applicable_rules` applies only `Utils.unescape_path` before testing string and regular expression rules. A request for `/assets/../uploads/file.html` or `/assets/..%2fuploads/file.html` is served as `uploads/file.html`, but the decoded path `/assets/../uploads/file.html` does not start with `uploads`, so a rule scoped to that directory never matches. The fix for CVE-2026-34786 (GHSA-q4qf-9j86-f5mh) added URL decoding to rule matching but did not add dot segment normalization, so versions that include that fix remain affected. ## Impact Applications that use `Rack::Static` `header_rules` to attach security-relevant headers to particular paths or file types are affected. An unauthenticated attacker who knows the path of a protected file can request it through a dot segment path and receive it without those headers, for example without `Content-Disposition: attachment` or a restrictive `Content-Security-Policy` that prevents uploaded HTML from rendering inline. The file itself is served unchanged. Applications that do not use path-specific `header_rules` are not affected. ## Mitigation * Update to a patched version of Rack in which `header_rules` are matched against the same normalized path used to serve the file. * Reject requests containing dot segments at a reverse proxy or application boundary. * Do not rely solely on `Rack::Static` `header_rules` to prevent inline rendering of untrusted uploads; serve them from a separate origin. ## Credit * Reporter and Remediation developer
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems rack | < 2.2.25 | 2.2.25, 3.1.23, 3.2.8 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-125110. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-125110.md Affected: rack < 2.2.25 Fixed in: 2.2.25, 3.1.23, 3.2.8 Steps: 1. Search this machine and project for rack (RubyGems): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
Patches
FAQ
Is CVE-2026-125110 being exploited?
There is no confirmed exploitation: CVE-2026-125110 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-125110?
Medium: CVSS 5.3 (v3.1, scored by GitHub). Remote, no login needed.
Which versions are affected by CVE-2026-125110?
rack < 2.2.25.
Is there a fix for CVE-2026-125110?
Yes. Fixed in 2.2.25, 3.1.23, 3.2.8. Upgrade rack to one of 2.2.25, 3.1.23, 3.2.8 (or later in the same release line).
How do I check if I'm affected by CVE-2026-125110?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More rack vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 8.7 | CVE-2026-125111 Rack: Multipart parsing allows DoS via unbounded scan buffer growth | RubyGems | EPSS 46% | |
| LOW 3.7 | CVE-2026-125108 Rack: Multipart boundary ambiguity guard in Rack::Multipart::Parser can be bypassed with a quoted boundary value, allowing WAF bypass | RubyGems | EPSS 24% | |
| MEDIUM 4.8 | CVE-2026-125109 Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835 | RubyGems | EPSS 21% |