CVE-2025-59830
JSON

7.5high

Rack QueryParser has an unsafe default allowing params_limit bypass via semicolon-separated parameters

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-625h-95r8-8xpm

Description

Rack is a modular Ruby web server interface. Prior to version 2.2.18, Rack::QueryParser 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. 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. This issue has been patched in version 2.2.18.

Affected

Product or packageVersionsReported by
rack rack< 2.2.18, before 2.2.18CVE List, NVD
rack (RubyGems)before 2.2.18GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Rack is a modular Ruby web server interface. Prior to version 2.2.18, Rack::QueryParser 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. 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. This issue has been patched in version 2.2.18.

GitHub Advisory Database

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 & and ; are counted consistently toward params_limit.
  • If upgrading is not immediately possible, configure QueryParser with 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.
NVD (es)

Rack es una interfaz modular de servidor web Ruby. Antes de la versión 2.2.18, Rack::QueryParser aplica su límite de parámetros solo para los parámetros separados por '&', mientras que sigue dividiendo tanto por '&' como por ';'. Como resultado, los atacantes podrían usar separadores ';' para eludir el límite de recuento de parámetros y enviar más parámetros de los previstos. Las aplicaciones o el middleware que invocan directamente a Rack::QueryParser con su configuración predeterminada (sin delimitador explícito) podrían estar expuestas a un mayor consumo de CPU y memoria. Esto puede ser explotado como un vector limitado de denegación de servicio. Este problema ha sido parcheado en la versión 2.2.18.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59830 changed 2025-09-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-625h-95r8-8xpm changed 2026-09-10CC-BY-4.0
NVDCVE-2025-59830 changed 2026-10-19Public domain