CVE-2025-61780
Ruby vulnerability analysis and mitigation

Overview

CVE-2025-61780 affects Rack, a modular Ruby web server interface. The vulnerability was discovered and disclosed in October 2025, impacting versions prior to 2.2.20, 3.1.18, and 3.2.3. It involves an information disclosure vulnerability in Rack::Sendfile when running behind a proxy that supports x-sendfile headers (such as Nginx) (GitHub Advisory).

Technical details

The vulnerability occurs when Rack::Sendfile receives untrusted x-sendfile-type or x-accel-mapping headers from a client and interprets them as proxy configuration directives. This can cause the middleware to send a 'redirect' response to the proxy, prompting it to reissue a new internal request that bypasses the proxy's access controls. The vulnerability has been assigned a CVSS v3.1 score of 5.8 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N (GitHub Advisory).

Impact

Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected, such as administrative pages. While the vulnerability does not allow arbitrary file reads, it could expose sensitive application routes. The vulnerability only affects systems where the application uses Rack::Sendfile with a proxy supporting x-accel-redirect, the proxy does not properly manage headers, and the application exposes endpoints returning bodies that respond to .to_path (GitHub Advisory).

Mitigation and workarounds

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 headers using 'proxysetheader x-sendfile-type x-accel-redirect' and 'proxysetheader x-accel-mapping /var/www/=/files/'. For Rails applications, sendfile can be disabled completely by setting 'config.actiondispatch.xsendfile_header = nil' (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61919HIGH7.5
  • RubyRuby
  • pcs-snmp
NoYesOct 10, 2025
CVE-2025-61772HIGH7.5
  • RubyRuby
  • gitlab-cng-18.4
NoYesOct 07, 2025
CVE-2025-61771HIGH7.5
  • RubyRuby
  • rhel10::ruby-33
NoYesOct 07, 2025
CVE-2025-61780MEDIUM5.8
  • RubyRuby
  • ruby-rack
NoYesOct 10, 2025
CVE-2025-61921LOW2.7
  • RubyRuby
  • ruby-sinatra
NoYesOct 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management