UBUNTU-CVE-2026-34835: Medium severity ubuntu/ruby-rack vulnerability

Published Apr 2, 2026
·
Updated

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.baseurl for link generation, redirects, or origin validation. This issue has been patched in versions 3.1.21 and 3.2.6.

Affected Software

2 affected componentsFixes available
ubuntu/ruby-rack<3.1.16-0.1ubuntu0.3
3.1.16-0.1ubuntu0.3
ubuntu/ruby-rack*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-rack to a version that resolves this vulnerability.

    Fixed in 3.1.16-0.1ubuntu0.3
  2. Upgrade

    Upgrade Rack to a version that resolves this vulnerability.

    Fixed in 3.1.21
  3. Upgrade

    Upgrade Rack to a version that resolves this vulnerability.

    Fixed in 3.2.6

Event History

Apr 2, 2026
CVE Published
via OSV·06:16 PM
Data Sourced
via OSV·06:16 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are practically exposed to this issue?

Applications using affected Rack versions are exposed when they rely on req.host, req.url, or req.base_url for generated links, redirects, or origin validation, and validate hostnames with naive prefix or suffix checks. The issue can enable host header poisoning in those usage patterns.

2

What does an attacker need to exploit this?

An attacker needs to send a request with a crafted Host header containing characters accepted by the vulnerable AUTHORITY expression, such as /, ?, #, or @. No privileges or user interaction are required, but exploitation depends on the application’s host-validation and URL-handling logic.

3

How can I determine whether an application needs remediation?

Check whether it uses Rack from 3.0.0.beta1 through before 3.1.21, or from 3.2.0 through before 3.2.6. Also review application code and dependencies for use of req.host, req.url, or req.base_url in redirects, link generation, or origin checks, especially where host validation is based on prefix or suffix matching.

4

Which Rack versions contain the fix?

The issue is patched in Rack 3.1.21 and 3.2.6. Upgrade to the applicable fixed release line.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203