# CVE-2026-125110: Rack: Rack::Static header\_rules bypass via dot-segment normalization mismatch

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-30)
- **CWE:** CWE-180
- **Aliases:** GHSA-wvg4-6p58-3gh3
- **Published:** 2026-11-10T18:50:07.000Z
- **Modified:** 2026-11-10T18:50:07.000Z

## Who should check

- Projects that depend on RubyGems package rack (\< 2.2.25)

## 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

- RubyGems `rack`: affected \< 2.2.25; fixed 2.2.25, 3.1.23, 3.2.8 (ghsa)

## Technologies

RubyGems

## Mitigation

- Upgrade rack to one of 2.2.25, 3.1.23, 3.2.8 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-30).

### 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.

## References

- vendor: <https://github.com/rack/rack/security/advisories/GHSA-wvg4-6p58-3gh3>
- patch: <https://github.com/rack/rack/commit/18a07fe553afb4d8a678d6a948cd6ba1e11e28be>
- patch: <https://github.com/rack/rack/commit/9d7f19484ffd5ed5e032678c26ee6eff96d3a0a3>
- patch: <https://github.com/rack/rack/commit/e88097ccb88be44d06d47b42daffe04929516ee4>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-125110>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-wvg4-6p58-3gh3.yml>
- other: <https://github.com/advisories/GHSA-wvg4-6p58-3gh3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-wvg4-6p58-3gh3> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-125110> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-125110>
