UBUNTU-CVE-2026-34785: High severity ubuntu/ruby-rack vulnerability

Published Apr 2, 2026
·
Updated

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static determines whether a request should be served as a static file using a simple string prefix check. When configured with URL prefixes such as "/css", it matches any request path that begins with that string, including unrelated paths such as "/css-config.env" or "/css-backup.sql". As a result, files under the static root whose names merely share the configured prefix may be served unintentionally, leading to information disclosure. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Affected Software

7 affected componentsFixes available
ubuntu/ruby-rack<1.5.2-3+deb8u3ubuntu1~esm11
1.5.2-3+deb8u3ubuntu1~esm11
ubuntu/ruby-rack<1.6.4-3ubuntu0.2+esm10
1.6.4-3ubuntu0.2+esm10
ubuntu/ruby-rack<1.6.4-4ubuntu0.2+esm10
1.6.4-4ubuntu0.2+esm10
ubuntu/ruby-rack<2.1.4-5ubuntu1.2+esm3
2.1.4-5ubuntu1.2+esm3
ubuntu/ruby-rack<2.2.7-1ubuntu0.7
2.2.7-1ubuntu0.7
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 1.5.2-3+deb8u3ubuntu1~esm11
  2. Upgrade

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

    Fixed in 1.6.4-3ubuntu0.2+esm10
  3. Upgrade

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

    Fixed in 1.6.4-4ubuntu0.2+esm10
  4. Upgrade

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

    Fixed in 2.1.4-5ubuntu1.2+esm3
  5. Upgrade

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

    Fixed in 2.2.7-1ubuntu0.7
  6. Upgrade

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

    Fixed in 3.1.16-0.1ubuntu0.3
  7. Upgrade

    Upgrade Rack::Static to a version that resolves this vulnerability.

    Fixed in 2.2.23

Event History

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

Frequently Asked Questions

1

Which deployments are exposed to unintended file disclosure?

Deployments using Rack::Static with a configured URL prefix such as "/css" are exposed if files beneath the static root have names beginning with that prefix but are not intended to be served. Examples include paths such as "/css-config.env" and "/css-backup.sql".

2

What does an attacker need to exploit this issue?

An attacker can exploit the issue remotely without authentication or user interaction by requesting a path that begins with a configured static URL prefix. Disclosure depends on a matching file being present under the static root.

3

Which Rack versions contain the fix?

The issue is patched in Rack versions 2.2.23, 3.1.21, and 3.2.6. Versions before those releases in their respective branches are affected.

4

What can be done before updating Rack?

Review Rack::Static URL-prefix configuration and the files under the static root. Remove or relocate sensitive files whose names begin with configured prefixes, or adjust the static-file configuration so unintended paths are not served.

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