7.5high
Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-98m9-hrrm-r99r
Description
Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. From 1.0.0 until 1.10.6 and 2.14.3, Faraday::NestedParamsEncoder, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth. A crafted query string causes Faraday to build a deeply nested Ruby Hash structure. The internal dehash routine then recursively walks this attacker-controlled structure without a depth limit. At sufficient depth, Ruby raises an uncaught SystemStackError (stack level too deep), crashing the calling thread or worker. This can lead to denial of service in applications that pass attacker-controlled query strings to Faraday's nested query parsing or URL-building paths. This vulnerability is fixed in 1.10.6 and 2.14.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lostisland faraday | >= 1.0.0, < 1.10.6, >= 2.0.0.alpha.pre.1, < 2.14.3 | CVE List |
| rubygem-faraday | Not specified Not affected: from 0:1.10.6-1.el8sat before *, from 0:1.10.6-1.el9sat before * | CVE List |
| 3scale-amp21/system | Not specified | CVE List |
| 3scale-amp21/zync | Not specified | CVE List |
| 3scale-amp22/system | Not specified | CVE List |
| 3scale-amp22/zync | Not specified | CVE List |
| 3scale-amp2/system-rhel7 | Not specified | CVE List |
| 3scale-amp2/system-rhel8 | Not specified | CVE List |
| 3scale-amp2/system-rhel9 | Not specified | CVE List |
| 3scale-amp2/zync-rhel8 | Not specified | CVE List |
| 3scale-amp2/zync-rhel9 | Not specified | CVE List |
| rubygem-faraday-cookie_jar | Not specified | CVE List |
| rubygem-faraday-em_http | Not specified | CVE List |
| rubygem-faraday-em_synchrony | Not specified | CVE List |
| rubygem-faraday-excon | Not specified | CVE List |
| rubygem-faraday-httpclient | Not specified | CVE List |
| rubygem-faraday_middleware | Not specified | CVE List |
| rubygem-faraday-multipart | Not specified | CVE List |
| rubygem-faraday-net_http | Not specified | CVE List |
| rubygem-faraday-net_http_persistent | Not specified | CVE List |
| rubygem-faraday-patron | Not specified | CVE List |
| rubygem-faraday-rack | Not specified | CVE List |
| rubygem-faraday-retry | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-em_http | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-em_synchrony | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-excon | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-httpclient | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday_middleware | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-multipart | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-net_http | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-net_http_persistent | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-patron | Not specified | CVE List |
| satellite-capsule:el8/rubygem-faraday-rack | Not specified | CVE List |
| satellite:el8/rubygem-faraday | Not specified | CVE List |
| satellite:el8/rubygem-faraday-cookie_jar | Not specified | CVE List |
| satellite:el8/rubygem-faraday-em_http | Not specified | CVE List |
| satellite:el8/rubygem-faraday-em_synchrony | Not specified | CVE List |
| satellite:el8/rubygem-faraday-excon | Not specified | CVE List |
| satellite:el8/rubygem-faraday-httpclient | Not specified | CVE List |
| satellite:el8/rubygem-faraday_middleware | Not specified | CVE List |
| satellite:el8/rubygem-faraday-multipart | Not specified | CVE List |
| satellite:el8/rubygem-faraday-net_http | Not specified | CVE List |
| satellite:el8/rubygem-faraday-net_http_persistent | Not specified | CVE List |
| satellite:el8/rubygem-faraday-patron | Not specified | CVE List |
| satellite:el8/rubygem-faraday-rack | Not specified | CVE List |
| satellite:el8/rubygem-faraday-retry | Not specified | CVE List |
| faraday (RubyGems) | from 2.0.0 before 2.14.3, from 1.0.0 before 1.10.6 | GitHub Advisory Database |
| faraday_project faraday | from 1.0.0 before 1.10.6, from 2.0.0 before 2.14.3 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. From 1.0.0 until 1.10.6 and 2.14.3, Faraday::NestedParamsEncoder, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth. A crafted query string causes Faraday to build a deeply nested Ruby Hash structure. The internal dehash routine then recursively walks this attacker-controlled structure without a depth limit. At sufficient depth, Ruby raises an uncaught SystemStackError (stack level too deep), crashing the calling thread or worker. This can lead to denial of service in applications that pass attacker-controlled query strings to Faraday's nested query parsing or URL-building paths. This vulnerability is fixed in 1.10.6 and 2.14.3.
GitHub Advisory Database
Faraday::NestedParamsEncoder, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth.
A crafted query string such as:
a[x][x][x][x]...[x]=1
causes Faraday to build a deeply nested Ruby Hash structure. The internal dehash routine then recursively walks this attacker-controlled structure without a depth limit. At sufficient depth, Ruby raises an uncaught SystemStackError (stack level too deep), crashing the calling thread or worker. This can lead to denial of service in applications that pass attacker-controlled query strings to Faraday's nested query parsing or URL-building paths.
This has been patched in version 2.14.3 and backported to 1.10.6.
NVD (es)
Faraday es una capa de abstracción de biblioteca de cliente HTTP que proporciona una interfaz común sobre muchos adaptadores. Desde 1.0.0 hasta 1.10.6 y 2.14.3, Faraday::NestedParamsEncoder, el codificador/decodificador predeterminado de parámetros de consulta anidados en Faraday, decodifica cadenas de consulta anidadas sin imponer una profundidad máxima de anidamiento. Una cadena de consulta manipulada hace que Faraday construya una estructura Ruby Hash profundamente anidada. La rutina interna de dehash luego recorre recursivamente esta estructura controlada por el atacante sin un límite de profundidad. A una profundidad suficiente, Ruby lanza un SystemStackError no capturado (stack level too deep), bloqueando el hilo o trabajador que realiza la llamada. Esto puede llevar a una denegación de servicio en aplicaciones que pasan cadenas de consulta controladas por el atacante a las rutas de análisis de consulta anidada o de construcción de URL de Faraday. Esta vulnerabilidad está corregida en 1.10.6 y 2.14.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54297 changed 2026-08-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98m9-hrrm-r99r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54297 changed 2026-10-25 | Public domain |