CVE-2026-34835

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.
References
Link Resource
https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 Exploit Mitigation Vendor Advisory
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*

History

24 Jul 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Rack es una interfaz modular de servidor web Ruby. Desde las versiones 3.0.0.beta1 hasta antes de la 3.1.21, y de la 3.2.0 hasta antes de la 3.2.6, Rack::Request analiza el encabezado Host utilizando una expresión regular AUTHORITY que acepta caracteres no permitidos en nombres de host conformes a RFC, incluyendo /, ?, # y @. Debido a que req.host devuelve el valor analizado completo, las aplicaciones que validan hosts utilizando comprobaciones ingenuas de prefijo o sufijo pueden ser eludidas. Esto puede llevar a un envenenamiento del encabezado Host en aplicaciones que utilizan req.host, req.url o req.base_url para la generación de enlaces, redirecciones o validación de origen. Este problema ha sido parcheado en las versiones 3.1.21 y 3.2.6.

17 Jun 2026, 10:39

Type Values Removed Values Added
References () https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 - Vendor Advisory, Exploit, Mitigation () https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 - Exploit, Mitigation, Vendor Advisory

03 Apr 2026, 19:32

Type Values Removed Values Added
References () https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 - () https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 - Vendor Advisory, Exploit, Mitigation
CPE cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
First Time Rack
Rack rack

02 Apr 2026, 18:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-02 18:16

Updated : 2026-07-24 21:10


NVD link : CVE-2026-34835

Mitre link : CVE-2026-34835

CVE.ORG link : CVE-2026-34835


JSON object : View

Products Affected

rack

  • rack
CWE
CWE-1286

Improper Validation of Syntactic Correctness of Input