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.
References
Configurations
Configuration 1 (hide)
|
History
30 Jun 2026, 03:18
| Type | Values Removed | Values Added |
|---|---|---|
| CWE | CWE-552 | |
| References |
|
16 Apr 2026, 17:19
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* | |
| References | () https://github.com/rack/rack/security/advisories/GHSA-h2jq-g4cq-5ppq - Vendor Advisory | |
| First Time |
Rack rack
Rack |
02 Apr 2026, 17:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-04-02 17:16
Updated : 2026-07-15 02:20
NVD link : CVE-2026-34785
Mitre link : CVE-2026-34785
CVE.ORG link : CVE-2026-34785
JSON object : View
Products Affected
rack
- rack
