CVE-2026-34835
published medium CVSS 3.1 · 4.8Rack: `Rack::Request` accepts invalid Host characters, enabling host allowlist bypass.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rack | — | rack>= 3.0.0.beta1, < 3.1.21 · >= 3.2.0, < 3.2.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | ruby-rack | Advisory build | 3.1.20-0+deb13u2 | DSA-6492-1 |
| Ubuntu | questing | ruby-rack | Advisory build | 3.1.16-0.1ubuntu0.3 | USN-8182-1 |
| Ubuntu | resolute | ruby-rack | Advisory build | 3.2.4-1ubuntu1.1 | USN-8989-1 |
Description
Rack is a modular Ruby web server interface. From versions 3.0.0.beta1 to before 3.1.21, and 3.2.0 to before 3.2.6, Rack::Request parses the Host header using an AUTHORITY regular expression that accepts characters not permitted in RFC-compliant hostnames, including /, ?, #, and @. Because req.host returns the full parsed value, applications that validate hosts using naive prefix or suffix checks can be bypassed. This can lead to host header poisoning in applications that use req.host, req.url, or req.base_url for link generation, redirects, or origin validation. This issue has been patched in versions 3.1.21 and 3.2.6.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rack | rack | >= 3.0.0.beta1, < 3.1.21 (affected)>= 3.2.0, < 3.2.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1286 CWE-1286: Improper Validation of Syntactic Correctness of Input
References
1Provider assertions
2GitHub_M · cna
Rack: `Rack::Request` accepts invalid Host characters, enabling host allowlist bypass.
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4943ed67dadeaf50311acff3c3d6cedb35769a421567d8ae411165a6387b3bb
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record