Skip to main content
← All vulnerabilities
CVE-2026-54297GHSA-98M9-HRRM-R99R

Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.10.6, 2.14.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • lostisland faraday

    From 1.0.0 · fixed in 1.10.6; From 2.0.0.alpha.pre.1 · fixed in 2.14.3

  • faradayRubyGems

    From 2.0.0 · fixed in 2.14.3

  • faradayRubyGems

    From 1.0.0 · fixed in 1.10.6

References 1

GitHub · lostisland/faraday