CVE-2026-34835 | Rack: `Rack::Request` accepts invalid Host characters, enabling host allowlist bypass.

Exp

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.

Published: 2026-04-02 Last update: 2026-04-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-34835 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.13%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2026-34835

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2026-34835

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-09 0.15% 0.13% -0.02%
2 2026-05-14 0.06% 0.15% +0.09%
3 2026-04-04 0.06%

Full EPSS history (4 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-34835

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
4.8 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 2.5 [email protected]
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 2.5 [email protected]

Weakness enumeration for CVE-2026-34835

GitHub Security Advisory for CVE-2026-34835

GHSA-g2pf-xv49-m2h5 · Severity: medium · Ecosystem: rubygems — Rack::Request accepts invalid Host characters, enabling host allowlist bypass

OS Trackers for CVE-2026-34835

vendor priority summary link
debian not yet assigned CVE-2026-34835 not yet assigned priority: Debian including 1 source packages (ruby-rack), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. https://security-tracker.debian.org/tracker/CVE-2026-34835
redhat medium https://access.redhat.com/security/cve/CVE-2026-34835
suse medium CVE-2026-34835 severity moderate: SUSE including 12 source package names (hawk2, rmt-server, …), 54 product×package rows across 22 product lines (SUSE Linux Enterprise High Availability Extension 12 SP5, SUSE Linux Enterprise High Availability Extension 15 SP4, … (22 product lines)): Known Not Affected 54. https://www.suse.com/security/cve/CVE-2026-34835/
ubuntu medium CVE-2026-34835 medium priority: Ubuntu including 1 source packages (ruby-rack), 9 status rows across 9 suites (bionic, focal, jammy, noble, questing, resolute, trusty, upstream, xenial): not-affected 7, needed 1, released 1. https://ubuntu.com/security/CVE-2026-34835

Affected software / configurations for CVE-2026-34835

Vendor Product Version Raw CPE
rack rack >= 3.0.0, < 3.1.21 cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
rack rack >= 3.2.0, < 3.2.6 cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*

References for CVE-2026-34835

URL Tags
https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 Vendor Advisory Exploit Mitigation
cvelogic Threat Intelligence