cve.bz

CVE-2025-61780 rack rack: Confused Deputy

5.3 mediumEPSS 0.6%Fix available

Medium (5.3) in rack rack. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.20, 3.1.18, 3.2.3.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-10-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-441 Unintended Proxy or Intermediary (Confused Deputy)
CWE-913 Improper Control of Dynamically-Managed Code Resources
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-61780 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61780?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61780?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-61780 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.20
rack:rackfrom 3.0.0 before 3.1.18
rack:rackfrom 3.2.0 before 3.2.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r657-rxjc-j557RubyGemsrack<2.2.202.2.20
GHSA-r657-rxjc-j557RubyGemsrack>=3.0 <3.1.183.1.18
GHSA-r657-rxjc-j557RubyGemsrack>=3.2 <3.2.33.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u4DLA-4357-1
Debian12ruby-rack2.2.20-0+deb12u1DEBIAN-CVE-2025-61780 DSA-6048-1
Debian13ruby-rack3.1.18-1~deb13u1DEBIAN-CVE-2025-61780 DSA-6048-1
Debian14ruby-rack3.1.18-1DEBIAN-CVE-2025-61780
Ubuntu22.04:LTSruby-rack2.1.4-5ubuntu1.2UBUNTU-CVE-2025-61780
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.5UBUNTU-CVE-2025-61780
Ubuntu25.10ruby-rack3.1.16-0.1ubuntu0.1UBUNTU-CVE-2025-61780
UbuntuPro:14.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-61780
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm9UBUNTU-CVE-2025-61780
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm9UBUNTU-CVE-2025-61780
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm8UBUNTU-CVE-2025-61780
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 2 morerubygem-rack2.2.20-150000.3.34.1SUSE-SU-2025:4273-1
openSUSELeap 15.6rubygem-rack2.2.20-150000.3.34.1SUSE-SU-2025:4273-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as Moderate severity primarily because exploitation requires a specific deployment scenario meeting all of the following conditions:

- The application must use Rack::Sendfile behind a proxy that supports x-accel-redirect (eg. Nginx)

- The proxy must not consistently set or remove the relevant x-sendfile-type and x-accel-mapping headers

- The application must expose endpoints returning objects responding to .to_path.

Exploitation could allow attackers to bypass proxy-enforced access controls and reach internal routes.

~~~

CVSS Assessment:

Scope (S:C): Changed — the attack affects the proxy's interpretation of internal routes, which is outside the original application scope.

Confidentiality (C:L): Low — attacker can only see internal endpoints, but does not allow arbitrary file access or sensitive data exposure.

~~~

~~~

Affectedness:

Ruby 2.x and 3.x versions shipped with Red Hat Enterprise Linux, Red Hat Openshift Core OS (RHOCS) and Red Hat In-Vehicle OS (RHIVOS) are not affected, as they do not bundle the rack RubyGem by default. Rack is a third-party gem that must be installed separately.

~~~

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/log-file-metric-exporter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Not affected
OpenShift Service Mesh 2openshift-service-mesh/grafana-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-must-gather-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-operator-bundleFix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-rhel8-operatorFix deferred
OpenShift Service Mesh 2openshift-service-mesh/pilot-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/proxyv2-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/ratelimit-rhel8Fix deferred
Red Hat 3scale API Management Platform 23scale-amp21/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp22/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp24/zyncFix deferred
Red Hat 3scale API Management Platform 23scale-amp25/zyncFix deferred
27 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-61780.

Attack patterns (CAPEC)

  • CAPEC-219 XML Routing Detour Attacks Likelihood: High · Severity: Medium
  • CAPEC-465 Transparent Proxy Abuse Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON