CVE catalog

CVE-2025-61780

Rack vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 5.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debianruby-racksid3.2.7-1fixed
Debianruby-rackforky3.2.7-1fixed
Debianruby-racktrixie3.1.20-0+deb13u1fixed
Debianruby-racktrixie-security3.1.20-0+deb13u2fixed
Debianruby-rackbookworm2.2.22-0+deb12u1fixed
Debianruby-rackbookworm-security2.2.22-0+deb12u2fixed
Ubunturuby-racknoble2.2.7-1ubuntu0.5fixed
CperackNot reported3.2.3fixed
Ubunturuby-rackpro2.0.6-3vulnerable
Ubunturuby-rackpro2.0.7-2vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm1vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm2vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm3vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm4vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm5vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm6vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm7vulnerable
Ubunturuby-rackpro2.0.7-2ubuntu0.1+esm8fixed
Ubunturuby-rack22.042.1.4-3vulnerable
Ubunturuby-rack22.042.1.4-4vulnerable
Ubunturuby-rack22.042.1.4-5vulnerable
Ubunturuby-rack22.042.1.4-5ubuntu1vulnerable
Ubunturuby-rack22.042.1.4-5ubuntu1.1vulnerable
Ubunturuby-rack22.042.1.4-5ubuntu1.2fixed
Ubunturuby-rack24.042.2.4-3vulnerable
Ubunturuby-rack24.042.2.7-1vulnerable
Ubunturuby-rack24.042.2.7-1ubuntu0.1vulnerable
Ubunturuby-rack24.042.2.7-1ubuntu0.2vulnerable
Ubunturuby-rack24.042.2.7-1ubuntu0.3vulnerable
Ubunturuby-rack24.042.2.7-1ubuntu0.4vulnerable
Ubunturuby-rack24.042.2.7-1ubuntu0.5fixed
Ubunturuby-rack25.102.2.7-1.1vulnerable
Ubunturuby-rack25.103.1.16-0.1vulnerable
Ubunturuby-rack25.103.1.16-0.1ubuntu0.1fixed
Suserubygem-racklinux enterprise high availability extension 15 sp32.2.20-150000.3.34.1fixed
Suserubygem-racklinux enterprise high availability extension 15 sp42.2.20-150000.3.34.1fixed
Suserubygem-racklinux enterprise high availability extension 15 sp52.2.20-150000.3.34.1fixed
Suserubygem-racklinux enterprise high availability extension 15 sp62.2.20-150000.3.34.1fixed
Suserubygem-racklinux enterprise high availability extension 15 sp72.2.20-150000.3.34.1fixed
Opensuserubygem-rackleap 15.62.2.20-150000.3.34.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-racksourcesid3.1.18-1not yet assignedNot reported[1117855]
Debianruby-racksourceforky3.1.18-1not yet assignedNot reported[1117855]
Debianruby-racksourcetrixie3.1.18-1~deb13u1not yet assignedNot reported[1117855]
Debianruby-racksourcebookworm2.2.20-0+deb12u1not yet assignedNot reported[1117855]
Ubunturuby-rackdebnoble2.2.7-1ubuntu0.5Not reportedNot reportedNot reported
CperackcpeNot reported3.2.3Not reportedNVD-CVE-2025-61780Not reported
Ubunturuby-rackdebpro2.0.7-2ubuntu0.1+esm8Not reportedUBUNTU-CVE-2025-61780Not reported
Ubunturuby-rackdeb22.042.1.4-5ubuntu1.2Not reportedUBUNTU-CVE-2025-61780Not reported
Ubunturuby-rackdeb24.042.2.7-1ubuntu0.5Not reportedUBUNTU-CVE-2025-61780Not reported
Ubunturuby-rackdeb25.103.1.16-0.1ubuntu0.1Not reportedUBUNTU-CVE-2025-61780Not reported
Suserubygem-rackrpmlinux enterprise high availability extension 15 sp32.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported
Suserubygem-rackrpmlinux enterprise high availability extension 15 sp42.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported
Suserubygem-rackrpmlinux enterprise high availability extension 15 sp52.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported
Suserubygem-rackrpmlinux enterprise high availability extension 15 sp62.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported
Suserubygem-rackrpmlinux enterprise high availability extension 15 sp72.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported
Opensuserubygem-rackrpmleap 15.62.2.20-150000.3.34.1Not reportedSUSE-SU-2025:4273-1Not reported

[Debian bug #1117855]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ruby-rack]Fixed
    Details (4)
    • 2.2.22-0+deb12u1 · all · bookworm

      Fixed · Fixed: 2.2.20-0+deb12u1

      usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12

    • 2.2.22-0+deb12u1 · all · bookworm

      Fixed · Fixed: 2.2.20-0+deb12u1

      usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12

    • 2.2.22-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.20-0+deb12u1

      usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12

    • 2.2.22-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.20-0+deb12u1

      usn · ruby-rack · debian · bookworm; usn · ruby-rack · debian · 12

[Debian 13 (Trixie)]

  • [ruby-rack]Fixed
    Details (5)
    • 3.1.20-0+deb13u1 · all · trixie

      Fixed · Fixed: 3.1.18-1~deb13u1

      usn · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie

      Fixed · Fixed: 3.1.18-1~deb13u1

      usn · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 3.1.18-1~deb13u1

      usn · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie-security · Historical version

      Fixed · Fixed: 3.1.18-1~deb13u1

      usn · ruby-rack · debian · 13

    • 3.1.20-0+deb13u2 · all · trixie-security

      Fixed · Fixed: 3.1.18-1~deb13u1

      usn · ruby-rack · debian · 13

Observed:

References