CVE-2025-61780
Last modified
CVE-2025-61780 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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). EPSS estimates a 0.44% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Rack | Rack | < 2.2.20 |
| Rack | Rack | >= 3.0.0, < 3.1.18 |
| Rack | Rack | >= 3.2.0, < 3.2.3 |
References
- https://github.com/rack/rack/security/advisories/GHSA-r657-rxjc-j557Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-61780?
How severe is CVE-2025-61780?
How do I fix CVE-2025-61780?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-61774PyVista provides 3D plotting and mesh analysis through an in…9.3
- CVE-2025-61775Vickey is a Misskey-based microblogging platform. A vulnerab…6.9
- CVE-2025-61776Dependency-Track is a component analysis platform that allow…4.7
- CVE-2025-61777Flag Forge is a Capture The Flag (CTF) platform. Starting in…9.1
- CVE-2025-61778Akka.NET is a .NET port of the Akka project from the Scala /…9.3
- CVE-2025-61779Confidential Containers's Trustee project contains tools and…8.7
- CVE-2025-61781OpenCTI is an open source platform for managing cyber threat…9.1
- CVE-2025-61782OpenCTI is an open source platform for managing cyber threat…6.1
- CVE-2025-61783Python Social Auth is a social authentication/registration m…6.3
- CVE-2025-61784LLaMA-Factory is a tuning library for large language models.…8.1
- CVE-2025-61785Deno is a JavaScript, TypeScript, and WebAssembly runtime. I…3.3
- CVE-2025-61786Deno is a JavaScript, TypeScript, and WebAssembly runtime. I…3.3
Are you affected by CVE-2025-61780?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
