p PatchFirst

CVE-2025-61780

CVE-2025-61780 · Rack has Possible Information Disclosure Vulnerability

CVSS 5.8 · Medium · EPSS 0.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • rackNo fix published
  • ruby-rack Debian 12Update to 2.2.20-0+deb12u1
  • ruby-rack Debian 13Update to 3.1.18-1~deb13u1
  • ruby-rack Debian 14Update to 3.1.18-1
  • and 8 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-rack"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • USN-7960-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 25.10, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
  • SUSE-SU-2025:4273-1 · openSUSE Leap 15.6, SUSE Linux Enterprise High Availability Extension 15 SP3, SUSE Linux Enterprise High Availability Extension 15 SP4, SUSE Linux Enterprise High Availability Extension 15 SP5, SUSE Linux Enterprise High Availability Extension 15 SP6, SUSE Linux Enterprise High Availability Extension 15 SP7 ·
  • DSA-6048-1 · Debian 12, Debian 13 ·
  • DLA-4357-1 · Debian 11 ·

Stack: system · ruby

Affected products and versions

  • rack

    Versions
    • < 2.2.20: Affected
    • >= 3.0, < 3.1.18: Affected
    • >= 3.2, < 3.2.3: Affected

    No fix published

  • ruby-rack Debian 12

    Versions
    • 2.2.13-1~deb12u1
    • 2.2.6.4-1
    • 2.2.6.4-1+deb12u1
    • 2.2.7-1
    • 2.2.7-1.1
    Affected ranges
    • ECOSYSTEM: < 2.2.20-0+deb12u1

    Update to 2.2.20-0+deb12u1

  • ruby-rack Debian 13

    Versions
    • 3.1.16-0.1
    Affected ranges
    • ECOSYSTEM: < 3.1.18-1~deb13u1

    Update to 3.1.18-1~deb13u1

  • ruby-rack Debian 14

    Versions
    • 3.1.16-0.1
    • 3.1.18-1~deb13u1
    Affected ranges
    • ECOSYSTEM: < 3.1.18-1

    Update to 3.1.18-1

  • rack RubyGems

    Versions
    • 0.1.0
    • 0.2.0
    • 0.3.0
    • 0.4.0
    • 0.9.0
    • 0.9.1
    All versions (120)
    • 1.0.0
    • 1.0.1
    • 1.1.0
    • 1.1.1
    • 1.1.1.pre
    • 1.1.2
    • 1.1.3
    • 1.1.4
    • 1.1.5
    • 1.1.6
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.2.3
    • 1.2.4
    • 1.2.5
    • 1.2.6
    • 1.2.7
    • 1.2.8
    • 1.3.0
    • 1.3.0.beta
    • 1.3.0.beta2
    • 1.3.1
    • 1.3.10
    • 1.3.2
    • 1.3.3
    • 1.3.4
    • 1.3.5
    • 1.3.6
    • 1.3.7
    • 1.3.8
    • 1.3.9
    • 1.4.0
    • 1.4.1
    • 1.4.2
    • 1.4.3
    • 1.4.4
    • 1.4.5
    • 1.4.6
    • 1.4.7
    • 1.5.0
    • 1.5.0.beta.1
    • 1.5.0.beta.2
    • 1.5.1
    • 1.5.2
    • 1.5.3
    • 1.5.4
    • 1.5.5
    • 1.6.0
    • 1.6.0.beta
    • 1.6.0.beta2
    • 1.6.1
    • 1.6.10
    • 1.6.11
    • 1.6.12
    • 1.6.13
    • 1.6.2
    • 1.6.3
    • 1.6.4
    • 1.6.5
    • 1.6.6
    • 1.6.7
    • 1.6.8
    • 1.6.9
    • 2.0.0.alpha
    • 2.0.0.rc1
    • 2.0.1
    • 2.0.2
    • 2.0.3
    • 2.0.4
    • 2.0.5
    • 2.0.6
    • 2.0.7
    • 2.0.8
    • 2.0.9
    • 2.0.9.1
    • 2.0.9.2
    • 2.0.9.3
    • 2.0.9.4
    • 2.1.0
    • 2.1.1
    • 2.1.2
    • 2.1.3
    • 2.1.4
    • 2.1.4.1
    • 2.1.4.2
    • 2.1.4.3
    • 2.1.4.4
    • 2.2.0
    • 2.2.1
    • 2.2.10
    • 2.2.11
    • 2.2.12
    • 2.2.13
    • 2.2.14
    • 2.2.15
    • 2.2.16
    • 2.2.17
    • 2.2.18
    • 2.2.19
    • 2.2.2
    • 2.2.3
    • 2.2.3.1
    • 2.2.4
    • 2.2.5
    • 2.2.6
    • 2.2.6.1
    • 2.2.6.2
    • 2.2.6.3
    • 2.2.6.4
    • 2.2.7
    • 2.2.8
    • 2.2.8.1
    • 2.2.9
    Affected ranges
    • ECOSYSTEM: < 2.2.20

    Update to 2.2.20

  • rack RubyGems

    Versions
    • 3.0.0
    • 3.0.1
    • 3.0.10
    • 3.0.11
    • 3.0.12
    • 3.0.13
    All versions (41)
    • 3.0.14
    • 3.0.15
    • 3.0.16
    • 3.0.17
    • 3.0.18
    • 3.0.2
    • 3.0.3
    • 3.0.4
    • 3.0.4.1
    • 3.0.4.2
    • 3.0.5
    • 3.0.6
    • 3.0.6.1
    • 3.0.7
    • 3.0.8
    • 3.0.9
    • 3.0.9.1
    • 3.1.0
    • 3.1.1
    • 3.1.10
    • 3.1.11
    • 3.1.12
    • 3.1.13
    • 3.1.14
    • 3.1.15
    • 3.1.16
    • 3.1.17
    • 3.1.2
    • 3.1.3
    • 3.1.4
    • 3.1.5
    • 3.1.6
    • 3.1.7
    • 3.1.8
    • 3.1.9
    Affected ranges
    • ECOSYSTEM: ≥ 3.0, < 3.1.18

    Update to 3.1.18

  • rack RubyGems

    Versions
    • 3.2.0
    • 3.2.1
    • 3.2.2
    Affected ranges
    • ECOSYSTEM: ≥ 3.2, < 3.2.3

    Update to 3.2.3

  • ruby-rack Ubuntu Pro 14.04 LTS

    Versions
    • 1.5.2-1
    • 1.5.2-1ubuntu0.1~esm1
    • 1.5.2-3+deb8u3ubuntu1~esm2
    • 1.5.2-3+deb8u3ubuntu1~esm3
    • 1.5.2-3+deb8u3ubuntu1~esm4
    • 1.5.2-3+deb8u3ubuntu1~esm6
    All versions (11)
    • 1.5.2-3+deb8u3ubuntu1~esm7
    • 1.5.2-3+deb8u3ubuntu1~esm8
    • 1.5.2-3+deb8u3ubuntu1~esm9
    • 1.5.2-3+deb8u3ubuntu1~esm10
    • 1.5.2-3+deb8u3ubuntu1~esm11
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-rack Ubuntu Pro 16.04 LTS

    Versions
    • 1.5.2-4
    • 1.6.4-2
    • 1.6.4-3
    • 1.6.4-3ubuntu0.1
    • 1.6.4-3ubuntu0.2
    • 1.6.4-3ubuntu0.2+esm1
    All versions (12)
    • 1.6.4-3ubuntu0.2+esm2
    • 1.6.4-3ubuntu0.2+esm4
    • 1.6.4-3ubuntu0.2+esm5
    • 1.6.4-3ubuntu0.2+esm6
    • 1.6.4-3ubuntu0.2+esm7
    • 1.6.4-3ubuntu0.2+esm8
    Affected ranges
    • ECOSYSTEM: < 1.6.4-3ubuntu0.2+esm9

    Update to 1.6.4-3ubuntu0.2+esm9

  • ruby-rack Ubuntu Pro 18.04 LTS

    Versions
    • 1.6.4-4
    • 1.6.4-4ubuntu0.1
    • 1.6.4-4ubuntu0.2
    • 1.6.4-4ubuntu0.2+esm1
    • 1.6.4-4ubuntu0.2+esm2
    • 1.6.4-4ubuntu0.2+esm4
    All versions (10)
    • 1.6.4-4ubuntu0.2+esm5
    • 1.6.4-4ubuntu0.2+esm6
    • 1.6.4-4ubuntu0.2+esm7
    • 1.6.4-4ubuntu0.2+esm8
    Affected ranges
    • ECOSYSTEM: < 1.6.4-4ubuntu0.2+esm9

    Update to 1.6.4-4ubuntu0.2+esm9

  • ruby-rack Ubuntu Pro 20.04 LTS

    Versions
    • 2.0.6-3
    • 2.0.7-2
    • 2.0.7-2ubuntu0.1
    • 2.0.7-2ubuntu0.1+esm1
    • 2.0.7-2ubuntu0.1+esm2
    • 2.0.7-2ubuntu0.1+esm3
    All versions (10)
    • 2.0.7-2ubuntu0.1+esm4
    • 2.0.7-2ubuntu0.1+esm5
    • 2.0.7-2ubuntu0.1+esm6
    • 2.0.7-2ubuntu0.1+esm7
    Affected ranges
    • ECOSYSTEM: < 2.0.7-2ubuntu0.1+esm8

    Update to 2.0.7-2ubuntu0.1+esm8

  • ruby-rack Ubuntu 22.04 LTS

    Versions
    • 2.1.4-3
    • 2.1.4-4
    • 2.1.4-5
    • 2.1.4-5ubuntu1
    • 2.1.4-5ubuntu1.1
    Affected ranges
    • ECOSYSTEM: < 2.1.4-5ubuntu1.2

    Update to 2.1.4-5ubuntu1.2

  • ruby-rack Ubuntu 24.04 LTS

    Versions
    • 2.2.4-3
    • 2.2.7-1
    • 2.2.7-1ubuntu0.1
    • 2.2.7-1ubuntu0.2
    • 2.2.7-1ubuntu0.3
    • 2.2.7-1ubuntu0.4
    Affected ranges
    • ECOSYSTEM: < 2.2.7-1ubuntu0.5

    Update to 2.2.7-1ubuntu0.5

  • ruby-rack Ubuntu 25.10

    Versions
    • 2.2.7-1.1
    • 3.1.16-0.1
    Affected ranges
    • ECOSYSTEM: < 3.1.16-0.1ubuntu0.1

    Update to 3.1.16-0.1ubuntu0.1

Original sources

Check your server →