
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34835 is a host header poisoning vulnerability in Rack, the modular Ruby web server interface, caused by improper validation of the Host header's syntactic correctness. Rack::Request parses the Host header using an AUTHORITY regular expression that accepts RFC-noncompliant characters — including /, ?, #, and @ — allowing attackers to bypass naive prefix or suffix host allowlist checks. Affected versions are 3.0.0.beta1 through before 3.1.21, and 3.2.0 through before 3.2.6. The vulnerability was published on April 1–2, 2026, with patches released the same day. It carries a CVSS v3.1 base score of 4.8 (Moderate) per the GitHub Advisory, with an alternative score of 6.5 (Medium) per NVD (GitHub Advisory, Rack Advisory).
The root cause is classified as CWE-1286 (Improper Validation of Syntactic Correctness of Input). Rack's AUTHORITY regular expression uses a character class ([[:graph:] && [^\[\]]]) that accepts nearly all printable characters except [ and ], including URI-reserved delimiters like @, /, ?, and # that are not valid per RFC 3986 hostname syntax. This means a Host header value such as myapp.com@evil.com passes a req.host.start_with?("myapp.com") check, and evil.com/myapp.com passes a req.host.end_with?("myapp.com") check — both returning attacker-controlled values through req.host, req.url, or req.base_url. No authentication or special privileges are required; the attacker only needs to send a crafted HTTP request with a malformed Host header to a vulnerable application (GitHub Advisory, Rack Advisory).
Successful exploitation enables host header poisoning, which can facilitate password reset link poisoning, open redirects, cache poisoning, phishing, and bypass of origin-dependent security decisions in applications that use req.host, req.url, or req.base_url for link generation or validation. The confidentiality and integrity impacts are low — there is no availability impact — and the scope is unchanged, meaning exploitation is limited to the affected application's trust boundary. The practical severity is highly dependent on application behavior; if a reverse proxy or load balancer already enforces strict Host header validation, exploitability is significantly reduced or eliminated (Rack Advisory, GitHub Advisory).
The GitHub Advisory references a proof-of-concept (advisory-level) available in the official Rack security advisory, but no runnable exploit code or step-by-step exploitation instructions have been published. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.131% (32nd percentile), indicating a low near-term exploitation probability (GitHub Advisory, Rack Advisory).
req.host, req.url, or req.base_url with naive prefix/suffix string checks (e.g., start_with? or end_with?).req.host.start_with?("myapp.com"): set Host: myapp.com@evil.comreq.host.end_with?("myapp.com"): set Host: evil.com/myapp.comcurl -H 'Host: myapp.com@evil.com' https://target-app/reset-password).@, /, ?, or # (e.g., Host: myapp.com@evil.com, Host: evil.com/myapp.com, Host: evil.com#myapp.com).@, /, ?, or # characters within the Host field.Upgrade Rack to version 3.1.21 or later (for the 3.1.x branch) or 3.2.6 or later (for the 3.2.x branch), which reject invalid authority characters in the Host header. As a defense-in-depth measure, enforce strict Host header validation at the reverse proxy or load balancer to reject headers containing unexpected characters before they reach the application. Applications should also replace naive start_with?/end_with? host checks with exact allowlist comparisons or proper subdomain boundary validation after confirming syntactic validity. IBM has also released patches for affected downstream products including Aspera Faspex, Aspera Enterprise WebApps, Aspera Shares, and API Connect (Rack Advisory, IBM Aspera Faspex, IBM Aspera Shares).
The vulnerability was coordinated and published by Rack maintainer ioquatix, with th4s1s credited as the reporter and jeremyevans as the remediation developer. Ubuntu issued security notice USN-8182-1 addressing this and related Rack vulnerabilities. IBM published multiple security bulletins covering affected downstream products. No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified (Rack Advisory, Ubuntu Advisory).
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
ruby-rack
devel
ruby-rack
focal (esm-apps)
ruby-rack
jammy
ruby-rack
jammy (esm-apps)
ruby-rack
noble
ruby-rack
questing
ruby-rack: 3.1.16-0.1ubuntu0.3
resolute
ruby-rack
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."