Denial of Service Vulnerability in ruby-rack Package
Summary
USN-7784-1: ruby-rack vulnerability. Affects ruby-rack versions < 2.2.7-1ubuntu0.4. Fixed in 2.2.7-1ubuntu0.4. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The ruby-rack package is a widely used web server interface for Ruby applications, providing a modular and adaptable framework for handling HTTP requests. It is designed to facilitate the development of web applications by allowing developers to create middleware components that can process requests and responses. However, the package has been found to have a vulnerability that could potentially allow attackers to bypass parameter limits, leading to service disruptions.
Vulnerability Detail
It was discovered that Rack incorrectly handled limiting the amount of parameters. An attacker could exploit this flaw to bypass the params_limit value, which could lead to a denial of service. This vulnerability, identified as CVE-2025-59830, poses a significant risk as it can allow malicious users to overwhelm the application with excessive parameters, potentially causing it to crash or become unresponsive.
How To Fix
Minimum fixed version
2.2.7-1ubuntu0.4
This is the first release that contains the fix.
sudo apt-get install --only-upgrade ruby-rack
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, you can implement additional input validation in your application to limit the number of parameters processed, thereby mitigating the risk of denial of service until the package is updated.
Conclusion
The ruby-rack package has a critical vulnerability that could allow denial of service attacks through parameter limit bypassing. It is crucial to update to the latest patched versions to ensure the security and stability of your applications. Implementing workarounds can provide temporary relief until the update is applied.
See every vulnerability recorded for ruby-rack →
FAQ
ruby-rack is a web server interface for Ruby applications that allows developers to create middleware components for processing HTTP requests.
The vulnerability allows attackers to bypass parameter limits, potentially leading to a denial of service by overwhelming the application with excessive parameters.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Implement additional input validation in your application to limit the number of parameters processed as a temporary workaround.
More information can be found in the Ubuntu Security Notices at https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7784-1.json.
References
Related vulnerabilities
Recent vulnerabilities recorded for ruby-rack.