Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-54297
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:35 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 24 Jun 2026, 15:50 UTC

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.

osv:CVE-2026-54297
Complete source record
{
  "id": "46dcf5fc2a518bb0dc5a9375d438aea386c7589848eb3160971e6fda6d24009b",
  "url": "https://osv.dev/vulnerability/CVE-2026-54297",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters",
    "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.",
    "evidence": "osv:CVE-2026-54297",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-54297",
      "aliases": [
        "CVE-2026-54297",
        "GHSA-98m9-hrrm-r99r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lostisland/faraday",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ff9dc1d1219a1bbdba95a9a4cf5d135b97247ee2"
                },
                {
                  "fixed": "3194de5434368b2d6379be22635b395807c4d2d8"
                },
                {
                  "introduced": "0a5714e8c89bb0aacf414ed00e70b9d70b4097e2"
                },
                {
                  "fixed": "f1ace878bae16c1df298b6af7c34657f2c4dcddb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "1.10.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.14.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.10.5",
            "v2.14.2",
            "v1.10.4",
            "v2.14.1",
            "v2.14.0",
            "v2.13.4",
            "v2.13.3",
            "v2.13.2",
            "v2.13.1",
            "v2.13.0",
            "v2.12.3",
            "v2.12.2",
            "v2.12.1",
            "v2.12.0",
            "v1.10.3",
            "v2.11.0",
            "v2.10.1",
            "v2.10.0",
            "v2.9.2",
            "v2.9.1",
            "v2.9.0",
            "v2.8.1",
            "v2.8.0",
            "v2.7.12",
            "v2.7.11",
            "v2.7.10",
            "v2.7.9",
            "v2.7.8",
            "v2.7.7",
            "v2.7.6",
            "v2.7.5",
            "v2.7.4",
            "v2.7.3",
            "v1.10.2",
            "v2.7.2",
            "v2.7.1",
            "v2.7.0",
            "v2.6.0",
            "v2.5.2",
            "v2.5.1",
            "v2.5.0",
            "v1.10.1",
            "v1.10.0",
            "v2.4.0",
            "v2.3.0",
            "v1.9.3",
            "v2.2.0",
            "v2.1.0",
            "v1.9.2",
            "v1.9.1",
            "v1.9.0",
            "v2.0.1",
            "v1.8.0",
            "v2.0.0",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.0",
            "v1.5.1",
            "v1.5.0",
            "v1.4.3",
            "v1.4.2",
            "v1.4.1",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54297.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.635220758Z",
      "provider": "osv",
      "references": [
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54297.json",
        "https://access.redhat.com/errata/RHSA-2026:50221",
        "https://access.redhat.com/errata/RHSA-2026:50222",
        "https://access.redhat.com/errata/RHSA-2026:50223",
        "https://access.redhat.com/errata/RHSA-2026:50263",
        "https://access.redhat.com/security/cve/CVE-2026-54297",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54297.json",
        "https://github.com/lostisland/faraday/security/advisories/GHSA-98m9-hrrm-r99r",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-54297",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2492252"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-674"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54297.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-54297",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499736,
  "published_at": "2026-06-24T15:50:08.949+00:00"
}