CVE-2025-61780
published medium CVSS 3.1 · 5.8Rack has Possible Information Disclosure Vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rack | — | rack< 2.2.20 · >= 3.0, < 3.1.18 · >= 3.2, < 3.2.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | ruby-rack | Advisory build | 2.2.20-0+deb12u1 | DSA-6048-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| Ubuntu | bionic | ruby-rack | Advisory build | 1.6.4-4ubuntu0.2+esm9 | USN-7960-1 |
| Debian | bullseye | ruby-rack | Advisory build | 2.1.4-3+deb11u4 | DLA-4357-1 |
| Debian | trixie | ruby-rack | Advisory build | 3.1.18-1~deb13u1 | DSA-6048-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
Show 31 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP5 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP5 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP5 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP5 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP6 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP6 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP6 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP6 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP7 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP7 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP7 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | SLE-15-SP7 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-racks390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rack-docaarch64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rack-docppc64le | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rack-docs390x | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | ruby2.5-rubygem-rack-docx86_64 | Advisory build | 2.2.20-150000.3.34.1 | SUSE-SU-2025:4273-1 |
| Ubuntu | focal | ruby-rack | Advisory build | 2.0.7-2ubuntu0.1+esm8 | USN-7960-1 |
| Ubuntu | jammy | ruby-rack | Advisory build | 2.1.4-5ubuntu1.2 | USN-7960-1 |
| Ubuntu | noble | ruby-rack | Advisory build | 2.2.7-1ubuntu0.5 | USN-7960-1 |
| Ubuntu | questing | ruby-rack | Advisory build | 3.1.16-0.1ubuntu0.1 | USN-7960-1 |
| Ubuntu | xenial | ruby-rack | Advisory build | 1.6.4-3ubuntu0.2+esm9 | USN-7960-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rack | rack | < 2.2.20 (affected)>= 3.0, < 3.1.18 (affected)>= 3.2, < 3.2.3 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-441 CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')
- CWE-913 CWE-913: Improper Control of Dynamically-Managed Code Resources
References
4Provider assertions
2GitHub_M · cna
Rack has Possible Information Disclosure Vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 45f0e4e29922ab0e14d9c3e29153fc8bfc11c257e6977df8818a747acea89809
- Ingested
- 23 Sep 2026, 08:55:13 UTC
- Source record
- Official CVE record