{"id":"CVE-2026-34835","published":"2026-04-02T17:09:07Z","modified":"2026-04-02T17:44:03Z","title":"Rack: `Rack::Request` accepts invalid Host characters, enabling host allowlist bypass.","vendor":"rack","product":"rack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00214,"percentile":0.11939,"provenance":"source"},"cwes":[{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":2.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.36}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-03","earliestUrl":"https://github.com/Cyber-note/CVE-2026-34835-Black-box-Analysis","repos":[{"name":"Cyber-note/CVE-2026-34835-Black-box-Analysis","url":"https://github.com/Cyber-note/CVE-2026-34835-Black-box-Analysis","stars":6,"created":"2026-07-03"}]},"first":{"date":"2026-07-03","source":"PoC-in-GitHub","url":"https://github.com/Cyber-note/CVE-2026-34835-Black-box-Analysis"},"provenance":"source"},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":[">= 3.0.0.beta1, < 3.1.21",">= 3.2.0, < 3.2.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-02T17:43:54.517566Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":[">=3.0.0.beta1, <3.1.21",">=3.2.0, <3.2.6"],"patched":["3.1.21","3.2.6"],"from":["GHSA-g2pf-xv49-m2h5"],"provenance":"source"}],"summary":{"text":"The Rack web server interface's Rack::Request component parses the Host header with a regular expression that accepts characters not allowed in RFC-compliant hostnames, such as /, ?, #, and @. An attacker who can send HTTP requests to the application, with no authentication or user interaction required, can supply a crafted Host header that bypasses naive prefix or suffix host allowlist checks, enabling host header poisoning in applications that build links, redirects, or origin checks from req.host, req.url, or req.base_url.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:21Z"},"euvd":{"id":"EUVD-2026-18478","exploited":false,"provenance":"source"}}