Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-61780

Fixed in a distro release EPSS <1%CVSS 5.8

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 2025-10-10 · CVE record · OSV

Products: Rack

Fixed upstream

EcosystemPackageFixed in
RubyGemsrack2.2.20
RubyGemsrack3.1.18
RubyGemsrack3.2.3

Distro releases

ReleasePackageFixed in
Chainguardgitlab-cng-18.2no fix
Chainguardgitlab-rails-ce-18.118.1.6-r13
Chainguardgitlab-rails-ce-18.2no fix
Chainguardgitlab-rails-ce-fips-18.1no fix
Chainguardgitlab-rails-ce-fips-18.2no fix
Chainguardkube-fluentd-operator1.18.2-r49
Chainguardkube-fluentd-operator-compat1.18.2-r49
Chainguardkube-fluentd-operator-default-config1.18.2-r49
Chainguardkube-fluentd-operator-oci-entrypoint1.18.2-r49
Chainguardlogstash-8.178.17.10-r4
Chainguardlogstash-8.17-compat8.17.10-r4
Chainguardlogstash-8.17-env2yaml8.17.10-r4
Chainguardlogstash-8.17-iamguarded-compat8.17.10-r4
Chainguardlogstash-8.17-with-output-opensearch8.17.10-r4
Chainguardlogstash-8.188.18.8-r2
Chainguardlogstash-8.18-compat8.18.8-r2
Chainguardlogstash-8.18-env2yaml8.18.8-r2
Chainguardlogstash-8.18-iamguarded-compat8.18.8-r2
Chainguardlogstash-8.18-with-output-opensearch8.18.8-r2
Chainguardlogstash-8.198.19.5-r2
Chainguardlogstash-8.19-compat8.19.5-r2
Chainguardlogstash-8.19-env2yaml8.19.5-r2
Chainguardlogstash-8.19-iamguarded-compat8.19.5-r2
Chainguardlogstash-8.19-with-output-opensearch8.19.5-r2
Chainguardlogstash-9.09.0.8-r2
Chainguardlogstash-9.0-compat9.0.8-r2
Chainguardlogstash-9.0-env2yaml9.0.8-r2
Chainguardlogstash-9.0-iamguarded-compat9.0.8-r2
Chainguardlogstash-9.0-with-output-opensearch9.0.8-r2
Chainguardlogstash-9.19.1.5-r2
Chainguardlogstash-9.1-bitnami-compat9.1.5-r2
Chainguardlogstash-9.1-compat9.1.5-r2
Chainguardlogstash-9.1-env2yaml9.1.5-r2
Chainguardlogstash-9.1-iamguarded-compat9.1.5-r2
Chainguardlogstash-9.1-with-output-opensearch9.1.5-r2
Chainguardruby3.2-rack-2.22.2.22-r0
Chainguardruby3.2-rails-7.27.2.2.2-r2
Chainguardruby3.2-rails-7.2-compat7.2.2.2-r2
Chainguardruby3.2-rails-8.08.0.3-r2
Chainguardruby3.2-rails-8.0-compat8.0.3-r2
Chainguardruby3.3-rack-2.22.2.22-r0
Chainguardruby3.3-rails-7.27.2.2.2-r2
Chainguardruby3.3-rails-7.2-compat7.2.2.2-r2
Chainguardruby3.3-rails-8.08.0.3-r2
Chainguardruby3.3-rails-8.0-compat8.0.3-r2
Chainguardruby3.4-rack-2.22.2.22-r0
Chainguardruby3.4-rails-7.27.2.2.2-r2
Chainguardruby3.4-rails-7.2-compat7.2.2.2-r2
Chainguardruby3.4-rails-8.08.0.3-r2
Chainguardruby3.4-rails-8.0-compat8.0.3-r2
Chainguardruby4.0-rack-2.22.2.22-r0
Debian 11ruby-rack2.1.4-3+deb11u4
Debian 12ruby-rack2.2.20-0+deb12u1
Debian 13ruby-rack3.1.18-1~deb13u1
Debian 14ruby-rack3.1.18-1
SUSE Linux Enterprise High Availability Extension 15 SP3rubygem-rack2.2.20-150000.3.34.1
SUSE Linux Enterprise High Availability Extension 15 SP4rubygem-rack2.2.20-150000.3.34.1
SUSE Linux Enterprise High Availability Extension 15 SP5rubygem-rack2.2.20-150000.3.34.1
SUSE Linux Enterprise High Availability Extension 15 SP6rubygem-rack2.2.20-150000.3.34.1
SUSE Linux Enterprise High Availability Extension 15 SP7rubygem-rack2.2.20-150000.3.34.1
Ubuntu 22.04 LTSruby-rack2.1.4-5ubuntu1.2
Ubuntu 24.04 LTSruby-rack2.2.7-1ubuntu0.5
Ubuntu 25.10ruby-rack3.1.16-0.1ubuntu0.1
Ubuntu Pro 14.04 LTSruby-rackno fix
Ubuntu Pro 16.04 LTSruby-rack1.6.4-3ubuntu0.2+esm9
Ubuntu Pro 18.04 LTSruby-rack1.6.4-4ubuntu0.2+esm9
Ubuntu Pro 20.04 LTSruby-rack2.0.7-2ubuntu0.1+esm8
Wolfigitlab-cng-18.2no fix
Wolfikube-fluentd-operator1.18.2-r49
Wolfikube-fluentd-operator-compat1.18.2-r49
Wolfikube-fluentd-operator-default-config1.18.2-r49
Wolfikube-fluentd-operator-oci-entrypoint1.18.2-r49
Wolfiruby3.2-rack-2.22.2.22-r0
Wolfiruby3.3-rack-2.22.2.22-r0
Wolfiruby3.4-rack-2.22.2.22-r0
Wolfiruby4.0-rack-2.22.2.22-r0
openSUSE Leap 15.6rubygem-rack2.2.20-150000.3.34.1