CVE-2026-34785 Details
Description
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.
A vulnerability in the Rack web server interface, specifically in the Rack::Static component, prior to versions 2.2.23, 3.1.21, and 3.2.6, allows for unintended information disclosure. The issue arises because Rack::Static uses a simple string prefix check to determine whether to serve a request as a static file. This can lead to unrelated files being served if their names share a configured prefix, such as '/css', potentially exposing sensitive information like configuration files, secrets, backups, or environment files.
Users are advised to update Rack to version 2.2.23, 3.1.21, or 3.2.6, which include the necessary patch. Additionally, avoid placing sensitive files under the Rack::Static root directory and prefer static URL mappings that do not overlap with sensitive filenames.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-34785 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2454486 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34785.json | redhat-SADP | |
| https://github.com/rack/rack/security/advisories/GHSA-h2jq-g4cq-5ppq | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-187 | Partial String Comparison | [email protected] |
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-552 | Files or Directories Accessible to External Parties | redhat-SADP |
Affected Products
| Product | Versions |
|---|---|
| rack rack | < 2.2.23 >= 3.0.0, < 3.1.21 >= 3.2.0, < 3.2.6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Apr 16, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | New CVE Received | [email protected] |