CVE-2026-54297 Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters
Attackers can cause denial of service in applications using Faraday by sending deeply nested query parameters that trigger stack exhaustion.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-54297?
CVE-2026-54297 is a high-severity denial of service vulnerability in lostisland faraday, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-54297?
4 open source packages ship an affected version, including faraday. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
faraday RubyGems | From 1.0.0 | 1.10.6 |
faraday RubyGems | From 1.0.0 | 1.10.6 |
faraday RubyGems | From 2.0.0 | 2.14.3 |
faraday RubyGems | From 2.0.0 | 2.14.3 |
Products include Faraday Project Faraday.
How do I fix CVE-2026-54297?
Upgrade faraday to a fixed version for your release line: 1.10.6 or 2.14.3.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-54297 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54297 exists.
Other vulnerabilities in lostisland faraday
Sources
Also known as CLEANSTART-2026-PK35326, CLEANSTART-2026-RL29531, DEBIAN-CVE-2026-54297, GHSA-98m9-hrrm-r99r, MINI-4prx-j44m-f64h, MINI-62j7-9jvc-j447 and 26 more.