CVE-2026-34786
Description
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Static#applicable_rules evaluates several header_rules types against the raw URL-encoded PATH_INFO, while the underlying file-serving path is decoded before the file is served. As a result, a request for a URL-encoded variant of a static path can serve the same file without the headers that header_rules were intended to apply. In deployments that rely on Rack::Static to attach security-relevant response headers to static content, this can allow an attacker to bypass those headers by requesting an encoded form of the path. 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:N/I:L/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.2 %
higher than 9 %
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-180: Incorrect Behavior Order: Validate Before Canonicalize
The product validates input before it is canonicalized.
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.
- T1027: Obfuscated Files or Information
References
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.