Rack has Possible Information Disclosure Vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 8 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
Summary
Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, a possible information disclosure vulnerability existed in `Rack::Sendfile` when running behind a proxy that supports `x-sendfile` headers (such as Nginx). Specially crafted headers could cause `Rack::Sendfile` to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions. When `Rack::Sendfile` received untrusted `x-sendfile-type` or `x-accel-mapping` headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a "redirect" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls. An attacker could exploit this by setting a crafted `x-sendfile-type: x-accel-redirect` header, setting a crafted `x-accel-mapping` header, and requesting a path that qualifies for proxy-based acceleration. Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes. This issue only affected systems meeting all of the following conditions: The application used `Rack::Sendfile` with a proxy that supports `x-accel-redirect` (e.g., Nginx); the proxy did **not** always set or remove the `x-sendfile-type` and `x-accel-mapping` headers; and the application exposed an endpoint that returned a body responding to `.to_path`. Users should upgrade to Rack versions 2.2.20, 3.1.18, or 3.2.3, which require explicit configuration to enable `x-accel-redirect`. Alternatively, configure the proxy to always set or strip the header, or in Rails applications, disable sendfile completely.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rack | rack | before 2.2.20; 3.0 to before 3.1.18; 3.2 to before 3.2.3 | 2.2.20, 3.1.18, 3.2.3 | Patch available | CNA |
| — | rack (RubyGems) | before 2.2.20 | 2.2.20 | Patch available | GHSA-r657-rxjc-j557 |
| — | rack (RubyGems) | 3.0 to before 3.1.18 | 3.1.18 | Patch available | GHSA-r657-rxjc-j557 |
| — | rack (RubyGems) | 3.2 to before 3.2.3 | 3.2.3 | Patch available | GHSA-r657-rxjc-j557 |
- rack Vendorrack Affected before 2.2.20; 3.0 to before 3.1.18; 3.2 to before 3.2.3 Fixed in 2.2.20, 3.1.18, 3.2.3 Patch available CNA
- rack (RubyGems) Vendor— Affected before 2.2.20 Fixed in 2.2.20 Patch available GHSA-r657-rxjc-j557
- rack (RubyGems) Vendor— Affected 3.0 to before 3.1.18 Fixed in 3.1.18 Patch available GHSA-r657-rxjc-j557
- rack (RubyGems) Vendor— Affected 3.2 to before 3.2.3 Fixed in 3.2.3 Patch available GHSA-r657-rxjc-j557
Remediation
- Fix · CNA rack (rack) Fixed in 2.2.20, 3.1.18, 3.2.3
- Fix · GHSA-r657-rxjc-j557 rack (RubyGems) Fixed in 2.2.20 Advisory →
- Fix · GHSA-r657-rxjc-j557 rack (RubyGems) Fixed in 3.1.18 Advisory →
- Fix · GHSA-r657-rxjc-j557 rack (RubyGems) Fixed in 3.2.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2 | Affected | No fix yet: Fix deferred |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
Not affected: 7 products
- Logging Subsystem for Red Hat OpenShift
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2025-61780
- 2026-10-03 Alias added: GHSA-r657-rxjc-j557
References
Patch 3
Advisory 2
More Rack vulnerabilities
- TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
- TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
- TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
- TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2025-38165 Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion) CVSS 3.1HIGH 7.5
- TI-2025-38163 Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion) CVSS 3.1HIGH 7.5
Sources
- CVE-2025-61780 · CVE Program
- CVE-2025-61780 · NVD
- FIRST EPSS
- GHSA-r657-rxjc-j557 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-61780 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences