Red Hat VEX
RHVEX-CVE-2025-61780
rubygem-rack: Improper handling of headers in `Rack::Sendfile` may allow proxy bypass
Details
A potential information disclosure vulnerability has been identified in the RubyGem Rack affecting Rack::Sendfile when used behind a proxy that supports x-sendfile headers (e.g., Nginx). When processing untrusted x-sendfile-type or x-accel-mapping headers, the middleware could misinterpret them as proxy directives, causing the proxy to make unintended internal requests. An attacker could exploit this by sending crafted headers and requesting paths that trigger proxy-based acceleration, potentially accessing internal application endpoints that are normally protected. The issue does not allow arbitrary file reads, code execution, or denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | cockpit-ha-cluster | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | pcs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | pcs-snmp | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:7 | pcs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | pcs-snmp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-clufter | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | pcs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | pcs-snmp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | pcs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | pcs-snmp | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-61780
- https://bugzilla.redhat.com/show_bug.cgi?id=2403126
- https://www.cve.org/CVERecord?id=CVE-2025-61780
- https://nvd.nist.gov/vuln/detail/CVE-2025-61780
- https://github.com/rack/rack/commit/57277b7741581fa827472c5c666f6e6a33abd784
- https://github.com/rack/rack/commit/7e69f65eefe9cd2868df9f9f3b0977b86f93523a
- https://github.com/rack/rack/commit/fba2c8bc63eb787ff4b19bc612d315fda6126d85
- https://github.com/rack/rack/security/advisories/GHSA-r657-rxjc-j557