CVE-2026-34785
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-04-02
- Last modified
- 2026-07-24
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.4 %
higher than 32 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| rack (RubyGems) | < 2.2.23 | Affected | |
| rack (RubyGems) | ≥ 3.0.0.beta1, < 3.1.21 | Affected | |
| rack (RubyGems) | ≥ 3.2.0, < 3.2.6 | Affected | |
| Rack | Rack | < 2.2.23 | Affected |
| Rack | Rack | ≥ 3.0.0, < 3.1.21 | Affected |
| Rack | Rack | ≥ 3.2.0, < 3.2.6 | Affected |
Weakness type
-
CWE-187: Partial String Comparison
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
-
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
-
CWE-552: Files or Directories Accessible to External Parties
The product makes files or directories accessible to unauthorized actors, even though they should not be.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1003: OS Credential Dumping
- T1007: System Service Discovery
- T1016: System Network Configuration Discovery
- T1018: Remote System Discovery
- T1033: System Owner/User Discovery
- T1036.005: Match Legitimate Resource Name or Location
- T1039: Data from Network Shared Drive
- T1046: Network Service Discovery
- T1049: System Network Connections Discovery
- T1057: Process Discovery
- T1069: Permission Groups Discovery
- T1082: System Information Discovery
- T1083: File and Directory Discovery
- T1087: Account Discovery
- T1111: Multi-Factor Authentication Interception
- T1119: Automated Collection
- T1120: Peripheral Device Discovery
- T1124: System Time Discovery
- T1134.001: Token Impersonation/Theft
- T1135: Network Share Discovery
References
- https://github.com/rack/rack/security/advisories/GHSA-h2jq-g4cq-5ppq
- https://access.redhat.com/security/cve/CVE-2026-34785
- https://bugzilla.redhat.com/show_bug.cgi?id=2454486
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34785.json
Related at Berigo
Articles
-
Swedish regulator fines a system supplier SEK 1.8 million after sick leave data leaked
Same product
2026-09-26
Sweden's data protection authority has fined Miljödata SEK 1.8 million over the August 2025 intrusion that the company itself says affected 2.2 milli…
-
A zero day in Magento was exploited for three days before Adobe shipped a fix
Same product
2026-09-26
Sansec has seen active exploitation of CVE-2026-75650 in Magento Open Source and Adobe Commerce since 4 September 2026. The flaw scores a maximum 10.…
-
Five remote hires turned out to be probable North Korean workers
Same product
2026-08-27
During 2026 Huntress supported investigations in which five remote employees were assessed as likely North Korean workers. The roles covered IT, sale…
-
Personal data exposed after a social engineering attack on Apollo
Same product
2026-08-25
Apollo has notified individuals that unauthorised users had access to certain cloud platforms between 6 and 10 July. The firm says names, dates of bi…
Services
-
CISO as a Service
With CISO as a Service, an external CISO from Berigo leads your security work and reports to management and the board. You get security leadership wi…
-
Secure Post-Merger Integration
Support for secure integration after acquisitions, mergers and carve-outs: from day-1 readiness to a consolidated ISMS and regulatory continuity.
-
ISO/IEC 27001: advisory and certification readiness
ISO/IEC 27001 advisory and an information security management system that is used in practice and able to withstand a certification audit. Choose a g…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.