Loading...
Skip to main content

CVE-2026-54297 — Faraday: Uncontrolled recursion in faraday — CVE...

HIGH

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

Published June 19, 2026Updated September 10, 2026Source: osv

Summary

`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: ```text 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.

Advisory Timeline

  • First published June 19, 2026 (115 days ago).
  • Last revised September 10, 2026 — 82 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update faraday to 1.10.6 or later
gem install faraday -v 1.10.6
Bundler
Update faraday to 2.14.3 or later
gem install faraday -v 2.14.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
faraday
rubygems
1.0.0, 1.0.1, 1.1.0, 1.10.0 (+23 more)1.10.6
faraday
rubygems
2.0.0, 2.0.1, 2.1.0, 2.10.0 (+39 more)2.14.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2026-54297?
Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2026-54297?
CVE-2026-54297 affects faraday. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54297 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-98m9-hrrm-r99r

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

  • CVE-2026-25765
    MEDIUM

    Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies