| Name | CVE-2026-34785 |
| Description | Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static determines whether a request should be served as a static file using a simple string prefix check. When configured with URL prefixes such as "/css", it matches any request path that begins with that string, including unrelated paths such as "/css-config.env" or "/css-backup.sql". As a result, files under the static root whose names merely share the configured prefix may be served unintentionally, leading to information disclosure. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ruby-rack (PTS) | bullseye | 2.1.4-3+deb11u2 | vulnerable |
| bullseye (security) | 2.1.4-3+deb11u5 | vulnerable | |
| bookworm | 2.2.20-0+deb12u1 | vulnerable | |
| bookworm (security) | 2.2.22-0+deb12u1 | vulnerable | |
| trixie | 3.1.18-1~deb13u1 | vulnerable | |
| trixie (security) | 3.1.20-0+deb13u1 | vulnerable | |
| forky | 3.1.18-1 | vulnerable | |
| sid | 3.2.5-2 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ruby-rack | source | experimental | 3.2.6-1 | |||
| ruby-rack | source | (unstable) | (unfixed) |
https://github.com/rack/rack/security/advisories/GHSA-h2jq-g4cq-5ppq
Fixed by: https://github.com/rack/rack/commit/7a8f32696609b88e2c4c1f09d473a1d2d837ed4b (v3.2.6)
Fixed by: https://github.com/rack/rack/commit/a17cb99b3440a4db09fb920407adf5ead127704c (v3.1.21)
Fixed by: https://github.com/rack/rack/commit/203730e4abb2fac3a0514d6dc3ac56de82bdff9a (v2.2.23)