CVE-2026-54297
JSON

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 packageVersionsReported by
lostisland faraday>= 1.0.0, < 1.10.6, >= 2.0.0.alpha.pre.1, < 2.14.3CVE List
rubygem-faradayNot specified
Not affected: from 0:1.10.6-1.el8sat before *, from 0:1.10.6-1.el9sat before *
CVE List
3scale-amp21/systemNot specifiedCVE List
3scale-amp21/zyncNot specifiedCVE List
3scale-amp22/systemNot specifiedCVE List
3scale-amp22/zyncNot specifiedCVE List
3scale-amp2/system-rhel7Not specifiedCVE List
3scale-amp2/system-rhel8Not specifiedCVE List
3scale-amp2/system-rhel9Not specifiedCVE List
3scale-amp2/zync-rhel8Not specifiedCVE List
3scale-amp2/zync-rhel9Not specifiedCVE List
rubygem-faraday-cookie_jarNot specifiedCVE List

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
redhat-SADP7.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-674CWE-770

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

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

https://github.com/lostisland/faraday/security/advisories/GHSA-98m9-hrrm-r99rexploit, mitigation, vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2026-54297vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2492252issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54297.json
https://access.redhat.com/errata/RHSA-2026:50223vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50222vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50263vendor-advisory
https://access.redhat.com/errata/RHSA-2026:50221vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-54297advisory
https://github.com/lostisland/faraday/pull/1681web
https://github.com/lostisland/faradaypackage
https://github.com/lostisland/faraday/releases/tag/v1.10.6web

Sources

SourceRecordLicence
CVE ListCVE-2026-54297 changed 2026-08-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-98m9-hrrm-r99r changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54297 changed 2026-10-25Public domain