CVE-2025-59830 — Rack has an unsafe default in rack — CVE Details
Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.88%). Schedule for your next planned update.
Does your project use an affected rack version?
Paste your Gemfile.lock to check it for CVE-2025-59830 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Details
The 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.
Other safeguards (bytesize_limit and key_space_limit) still applied, but did not prevent this particular bypass.
Impact
Applications 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.
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.
Mitigation
- Upgrade to a patched version of Rack where both
∧are counted consistently towardparams_limit. - If upgrading is not immediately possible, configure
QueryParserwith an explicit delimiter (e.g.,&) to avoid the mismatch. - 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.
Advisory Timeline
- First published September 25, 2025 (427 days ago).
- Last revised September 10, 2026 — 349 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install rack -v 2.2.18
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| rack RubyGems · Affected: 0.1.0, 0.2.0, 0.3.0, 0.4.0 (+114 more) | 2.2.18 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2025-59830?
- Rack has an unsafe default in Rack::QueryParser allows params_limit bypass via semicolon-separated parameters. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-59830?
- CVE-2025-59830 affects rack. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-59830 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 56.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-27610HIGH
Local File Inclusion in Rack::Static
- CVE-2026-34829HIGH
Rack's multipart parsing without Content-Length header allows unbounded chunked file uploads
- CVE-2025-46727HIGH
Rack has an Unbounded-Parameter DoS in Rack::QueryParser
- CVE-2026-34785HIGH
Rack::Static prefix matching can expose unintended files under the static root
- CVE-2026-34763MEDIUM
Rack has a root directory disclosure via unescaped regex interpolation in Rack::Directory
- CVE-2025-27111MEDIUM
Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
- CVE-2024-39316MEDIUM
Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
- CVE-2026-34835MEDIUM
Rack::Request accepts invalid Host characters, enabling host allowlist bypass