
CVE catalog
CVE-2025-61780
Rack vulnerabilities
- Severity
- Medium · CVSS 5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.55% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-rack | sid | 3.2.7-1 | fixed |
| Debian | ruby-rack | forky | 3.2.7-1 | fixed |
| Debian | ruby-rack | trixie | 3.1.20-0+deb13u1 | fixed |
| Debian | ruby-rack | trixie-security | 3.1.20-0+deb13u2 | fixed |
| Debian | ruby-rack | bookworm | 2.2.22-0+deb12u1 | fixed |
| Debian | ruby-rack | bookworm-security | 2.2.22-0+deb12u2 | fixed |
| Ubuntu | ruby-rack | noble | 2.2.7-1ubuntu0.5 | fixed |
| Cpe | rack | Not reported | 3.2.3 | fixed |
| Ubuntu | ruby-rack | pro | 2.0.6-3 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm1 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm2 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm3 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm4 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm5 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm6 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm7 | vulnerable |
| Ubuntu | ruby-rack | pro | 2.0.7-2ubuntu0.1+esm8 | fixed |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-3 | vulnerable |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-4 | vulnerable |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-5 | vulnerable |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-5ubuntu1 | vulnerable |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-5ubuntu1.1 | vulnerable |
| Ubuntu | ruby-rack | 22.04 | 2.1.4-5ubuntu1.2 | fixed |
| Ubuntu | ruby-rack | 24.04 | 2.2.4-3 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.1 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.2 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.3 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.4 | vulnerable |
| Ubuntu | ruby-rack | 24.04 | 2.2.7-1ubuntu0.5 | fixed |
| Ubuntu | ruby-rack | 25.10 | 2.2.7-1.1 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1 | vulnerable |
| Ubuntu | ruby-rack | 25.10 | 3.1.16-0.1ubuntu0.1 | fixed |
| Suse | rubygem-rack | linux enterprise high availability extension 15 sp3 | 2.2.20-150000.3.34.1 | fixed |
| Suse | rubygem-rack | linux enterprise high availability extension 15 sp4 | 2.2.20-150000.3.34.1 | fixed |
| Suse | rubygem-rack | linux enterprise high availability extension 15 sp5 | 2.2.20-150000.3.34.1 | fixed |
| Suse | rubygem-rack | linux enterprise high availability extension 15 sp6 | 2.2.20-150000.3.34.1 | fixed |
| Suse | rubygem-rack | linux enterprise high availability extension 15 sp7 | 2.2.20-150000.3.34.1 | fixed |
| Opensuse | rubygem-rack | leap 15.6 | 2.2.20-150000.3.34.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-rack | source | sid | 3.1.18-1 | not yet assigned | Not reported | [1117855] |
| Debian | ruby-rack | source | forky | 3.1.18-1 | not yet assigned | Not reported | [1117855] |
| Debian | ruby-rack | source | trixie | 3.1.18-1~deb13u1 | not yet assigned | Not reported | [1117855] |
| Debian | ruby-rack | source | bookworm | 2.2.20-0+deb12u1 | not yet assigned | Not reported | [1117855] |
| Ubuntu | ruby-rack | deb | noble | 2.2.7-1ubuntu0.5 | Not reported | Not reported | Not reported |
| Cpe | rack | cpe | Not reported | 3.2.3 | Not reported | NVD-CVE-2025-61780 | Not reported |
| Ubuntu | ruby-rack | deb | pro | 2.0.7-2ubuntu0.1+esm8 | Not reported | UBUNTU-CVE-2025-61780 | Not reported |
| Ubuntu | ruby-rack | deb | 22.04 | 2.1.4-5ubuntu1.2 | Not reported | UBUNTU-CVE-2025-61780 | Not reported |
| Ubuntu | ruby-rack | deb | 24.04 | 2.2.7-1ubuntu0.5 | Not reported | UBUNTU-CVE-2025-61780 | Not reported |
| Ubuntu | ruby-rack | deb | 25.10 | 3.1.16-0.1ubuntu0.1 | Not reported | UBUNTU-CVE-2025-61780 | Not reported |
| Suse | rubygem-rack | rpm | linux enterprise high availability extension 15 sp3 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
| Suse | rubygem-rack | rpm | linux enterprise high availability extension 15 sp4 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
| Suse | rubygem-rack | rpm | linux enterprise high availability extension 15 sp5 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
| Suse | rubygem-rack | rpm | linux enterprise high availability extension 15 sp6 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
| Suse | rubygem-rack | rpm | linux enterprise high availability extension 15 sp7 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
| Opensuse | rubygem-rack | rpm | leap 15.6 | 2.2.20-150000.3.34.1 | Not reported | SUSE-SU-2025:4273-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-rack]Fixed
Details (4)
2.2.22-0+deb12u1· all · bookwormFixed · Fixed:
2.2.20-0+deb12u1usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12
2.2.22-0+deb12u1· all · bookwormFixed · Fixed:
2.2.20-0+deb12u1usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12
2.2.22-0+deb12u2· all · bookworm-securityFixed · Fixed:
2.2.20-0+deb12u1usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12
2.2.22-0+deb12u2· all · bookworm-securityFixed · Fixed:
2.2.20-0+deb12u1usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12
[Debian 13 (Trixie)]
- [ruby-rack]Fixed
Details (5)
3.1.20-0+deb13u1· all · trixieFixed · Fixed:
3.1.18-1~deb13u1usn · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixieFixed · Fixed:
3.1.18-1~deb13u1usn · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixie-securityFixed · Fixed:
3.1.18-1~deb13u1usn · ruby-rack · debian · 13
3.1.20-0+deb13u1· all · trixie-security · Historical versionFixed · Fixed:
3.1.18-1~deb13u1usn · ruby-rack · debian · 13
3.1.20-0+deb13u2· all · trixie-securityFixed · Fixed:
3.1.18-1~deb13u1usn · ruby-rack · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2025_4273-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2025-61780]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-61780]
- [https://osv.dev/vulnerability/SUSE-SU-2025:4273-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-61780]
- [https://security-tracker.debian.org/tracker/CVE-2025-61780]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61780.json]
- [https://ubuntu.com/security/notices/USN-7960-1]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]