Information Disclosure in Rack's Sendfile Feature on Ruby Web Server Interfaces
CVE-2025-61780
5.8MEDIUM
What is CVE-2025-61780?
An information disclosure vulnerability exists in Rack's Sendfile feature, affecting applications that use this middleware behind a proxy like Nginx. When misconfigured, specially crafted headers can trick Rack::Sendfile into executing unintended internal requests, thereby bypassing crucial proxy-level access restrictions. This occurs when the proxy misinterprets untrusted 'x-sendfile-type' or 'x-accel-mapping' headers, possibly exposing sensitive application routes and admin pages. Users are advised to upgrade Rack to versions 2.2.20, 3.1.18, or 3.2.3 and to ensure appropriate configuration of proxy headers to mitigate this risk.
Affected Version(s)
rack < 2.2.20 < 2.2.20
rack >= 3.0, < 3.1.18 < 3.0, 3.1.18
rack >= 3.2, < 3.2.3 < 3.2, 3.2.3