CVE-2025-59830: Rack has an unsafe default in Rack :QueryParser Allows Params_limit Bypass Vulnerability
HIGHCVE-2025-59830 is a HIGH (CVSS 7.5) :queryparser allows params_limit bypass vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Rack has an unsafe default in Rack libraries in the RubyGems ecosystem. The issue involves :queryparser allows params_limit bypass via semicolon-separated parameters. Remediation is available by upgrading affected packages to version 2.2.18.
CVE-2025-59830 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-59830
To remediate this vulnerability, upgrade all affected Rack has an unsafe default in Rack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rack to 2.2.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-59830, inspect your project dependencies for Rack has an unsafe default in Rack:
inspect dependencies for rack
Analyze the terminal output to locate any version of Rack has an unsafe default in Rack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.18), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Rack has an unsafe default in Rack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59830 Affected Rack has an unsafe default in Rack Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rack
|
RubyGems |
< 2.2.18
|
2.2.18
|
References
Frequently Asked Questions
What is CVE-2025-59830?
Which Rack has an unsafe default in Rack versions are affected?
What version fixes CVE-2025-59830?
Is rack affected?
What is the CVSS score of CVE-2025-59830?
What CWE is associated with CVE-2025-59830?
How can I check RubyGems dependencies for CVE-2025-59830?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-625h-95r8-8xpm",
"modified" : "2025-09-25T16:39:27Z",
"published" : "2025-09-25T16:39:27Z",
"aliases" : [ "CVE-2025-59830" ],
"summary" : "Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters",
"details" : "## Summary\n\n`Rack::QueryParser` in version `< 2.2.18` enforces its `params_limit` only for parameters separated by `&`, while still splitting on both `&` and `;`. As a result, attackers could use `;` separators to bypass the parameter count limit and submit more parameters than intended.\n\n## Details\n\nThe issue arises because `Rack::QueryParser#check_query_string` counts only `&` characters when determining the number of parameters, but the default separator regex `DEFAULT_SEP = /[&;] */n` splits on both `&` and `;`. This mismatch means that queries using `;` separators were not included in the parameter count, allowing `params_limit` to be bypassed.\n\nOther safeguards (`bytesize_limit` and `key_space_limit`) still applied, but did not prevent this particular bypass.\n\n## Impact\n\nApplications or middleware that directly invoke `Rack::QueryParser` with its default configuration (no explicit delimiter) could be exposed to increased CPU and memory consumption. This can be abused as a limited denial-of-service vector.\n\n`Rack::Request`, the primary entry point for typical Rack applications, uses `QueryParser` in a safe way and does not appear vulnerable by default. As such, the severity is considered **low**, with the impact limited to edge cases where `QueryParser` is used directly.\n\n## Mitigation\n\n* Upgrade to a patched version of Rack where both `&` and `;` are counted consistently toward `params_limit`.\n* If upgrading is not immediately possible, configure `QueryParser` with an explicit delimiter (e.g., `&`) to avoid the mismatch.\n* As a general precaution, enforce query string and request size limits at the web server or proxy layer (e.g., Nginx, Apache, or a CDN) to mitigate excessive parsing overhead.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "rack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rack/rack/security/advisories/GHSA-625h-95r8-8xpm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59830"
}, {
"type" : "WEB",
"url" : "https://github.com/rack/rack/commit/54e4ffdd5affebcb0c015cc6ae74635c0831ed71"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rack/rack"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-25T16:39:27Z",
"nvd_published_at" : "2025-09-25T15:16:13Z"
}
}