
CVE catalog
CVE-2026-34786
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static#applicable_rules evaluates several header_rules types against the raw URL-encoded PATH_INFO, whil
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 25, 2026
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static#applicable_rules evaluates several header_rules types against the raw URL-encoded PATH_INFO, while the underlying file-serving path is decoded before the file is served. As a result, a request for a URL-encoded variant of a static path can serve the same file without the headers that header_rules were intended to apply. In deployments that rely on Rack::Static to attach security-relevant response headers to static content, this can allow an attacker to bypass those headers by requesting an encoded form of the path. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-rack | sid | 3.2.7-1 | fixed |
| Debian | ruby-rack | forky | 3.2.7-1 | fixed |
| Debian | ruby-rack | trixie | 3.1.20-0+deb13u1 | vulnerable |
| Debian | ruby-rack | trixie-security | 3.1.20-0+deb13u2 | fixed |
| Debian | ruby-rack | bookworm | 2.2.22-0+deb12u1 | vulnerable |
| Debian | ruby-rack | bookworm-security | 2.2.22-0+deb12u2 | fixed |
| Cpe | ruby-rack | Not reported | 2.2.7-1ubuntu0.7 | fixed |
| Cpe | ruby-rack | Not reported | Not reported | vulnerable |
| Cpe | rack | Not reported | 2.2.23 | fixed |
| Cpe | rack | Not reported | 3.1.21 | fixed |
| Cpe | rack | Not reported | 3.2.6 | fixed |
| Ubuntu | ruby-rack | pro | 2.1.4-3 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-4 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1+esm2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1+esm3 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1+esm4 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1+esm5 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.1+esm1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.1+esm2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.2+esm1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.2+esm2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.1.4-5ubuntu1.2+esm3 | fixed |
| Ubuntu | ruby-rack | 24.04 | 2.2.4-3 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.1 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.2 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.3 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.4 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.5 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.6 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.7 | fixed |
| Ubuntu | ruby-rack | 25.10 | 2.2.7-1.1 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1ubuntu0.1 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1ubuntu0.2 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1ubuntu0.3 | fixed |
| Ubuntu | ruby-rack | 26.04 | 3.1.16-0.1 | vulnerable |
| Ubuntu | ruby-rack | 26.04 | 3.1.18-1 | vulnerable |
| Ubuntu | ruby-rack | 26.04 | 3.1.18-1build1 | vulnerable |
| Ubuntu | ruby-rack | 26.04 | 3.2.4-1ubuntu1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-rack | source | sid | 3.2.6-2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-rack | source | forky | 3.2.6-2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-rack | source | trixie | 3.1.20-0+deb13u2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-rack | source | bookworm | 2.2.22-0+deb12u2 | not yet assigned | Not reported | Not reported |
| Cpe | ruby-rack | cpe | Not reported | 2.2.7-1ubuntu0.7 | Not reported | Not reported | Not reported |
| Cpe | rack | cpe | Not reported | 2.2.23 | Not reported | Not reported | Not reported |
| Cpe | rack | cpe | Not reported | 3.1.21 | Not reported | Not reported | Not reported |
| Cpe | rack | cpe | Not reported | 3.2.6 | Not reported | Not reported | Not reported |
| Ubuntu | ruby-rack | deb | pro | 2.1.4-5ubuntu1.2+esm3 | Not reported | UBUNTU-CVE-2026-34786 | Not reported |
| Ubuntu | ruby-rack | deb | 24.04 | 2.2.7-1ubuntu0.7 | Not reported | UBUNTU-CVE-2026-34786 | Not reported |
| Ubuntu | ruby-rack | deb | 25.10 | 3.1.16-0.1ubuntu0.3 | Not reported | UBUNTU-CVE-2026-34786 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-rack]Affected
Details (4)
2.2.22-0+deb12u1· all · bookwormAffected · Fixed:
2.2.22-0+deb12u2nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12
2.2.22-0+deb12u1· all · bookwormAffected · Fixed:
2.2.22-0+deb12u2nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12
2.2.22-0+deb12u2· all · bookworm-securityFixed · Fixed:
2.2.22-0+deb12u2nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12
2.2.22-0+deb12u2· all · bookworm-securityFixed · Fixed:
2.2.22-0+deb12u2nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12
[Debian 13 (Trixie)]
- [ruby-rack]Affected
Details (5)
3.1.20-0+deb13u1· all · trixieAffected · Fixed:
3.1.20-0+deb13u2nvd · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixieAffected · Fixed:
3.1.20-0+deb13u2nvd · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixie-securityAffected · Fixed:
3.1.20-0+deb13u2nvd · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixie-security · Historical versionAffected · Fixed:
3.1.20-0+deb13u2nvd · ruby-rack · debian · 13
3.1.20-0+deb13u2· all · trixie-securityFixed · Fixed:
3.1.20-0+deb13u2nvd · ruby-rack · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_23321-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-34786]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-34786]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-34786]
- [https://security-tracker.debian.org/tracker/CVE-2026-34786]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34786.json]
- [https://ubuntu.com/security/notices/USN-8182-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1687.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]