Search

Find a vulnerability

Search criteria

    4 vulnerabilities found for symfony/json-path by Symfony

    CVE-2026-133744 (GCVE-0-2026-133744)

    Vulnerability from nvd – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    JsonPath Queries Can Still Hold a Process Through Duplicated Nodes and Repeated Work: Incomplete Fix for CVE-2026-135804
    Summary
    The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a JsonCrawler::find() call, and evaluate filters and absolute queries once per call. Chained recursive descent isn't bounded. Each ..* segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates. $document = 'null'; for ($i = 0; $i < 40; ++$i) { $document = '{"a":'.$document.',"b":1}'; } // 484 bytes (new JsonCrawler($document))->find('$..*..*..*'); // 19760 nodes, 0.42 s, 35 MB (new JsonCrawler($document))->find('$..*..*..*..*'); // 182780 nodes, 77 s, 256 MB Each additional ..* multiplies the time and the memory. Other queries hold the process the same way, because work that doesn't depend on the node is repeated for each node. Unions that repeat a selector, like $[0,0,0,0,0][0,0,0,0,0], multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like length(length(...(@.a)...)) are scanned again at each level. Operands that don't refer to @, like length($.text) or $ == $, are computed again for each node. And a query of a few megabytes exhausts the memory before it's even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte $[?$==$] took 11.5 s on an 80 KB document. The threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting. JsonCrawler::find() now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a JsonCrawlerException, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included. Operands that don't refer to @ are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they're parsed.
    CWE
    • CWE-400 - Uncontrolled Resource Consumption
    • CWE-407 - Inefficient Algorithmic Complexity
    Impacted products
    Vendor Product Version
    Symfony symfony/json-path Affected: 7.3.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 7.3.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:35
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/json-path",
              "product": "symfony/json-path",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:35:53.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a `JsonCrawler::find()` call, and evaluate filters and absolute queries once per call. Chained recursive descent isn\u0027t bounded. Each `..*` segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates.\n\n```php\n$document = \u0027null\u0027;\nfor ($i = 0; $i \u003c 40; ++$i) {\n    $document = \u0027{\"a\":\u0027.$document.\u0027,\"b\":1}\u0027;\n}\n\n// 484 bytes\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*\u0027);    // 19760 nodes, 0.42 s, 35 MB\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*..*\u0027); // 182780 nodes, 77 s, 256 MB\n```\n\nEach additional `..*` multiplies the time and the memory. Other queries hold the process the same way, because work that doesn\u0027t depend on the node is repeated for each node. Unions that repeat a selector, like `$[0,0,0,0,0][0,0,0,0,0]`, multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like `length(length(...(@.a)...))` are scanned again at each level. Operands that don\u0027t refer to `@`, like `length($.text)` or `$ == $`, are computed again for each node. And a query of a few megabytes exhausts the memory before it\u0027s even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte `$[?$==$]` took 11.5 s on an 80 KB document.\n\nThe threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting.\n\n`JsonCrawler::find()` now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a `JsonCrawlerException`, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included.\n\nOperands that don\u0027t refer to `@` are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they\u0027re parsed."
                }
              ],
              "value": "The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a JsonCrawler::find() call, and evaluate filters and absolute queries once per call. Chained recursive descent isn\u0027t bounded. Each ..* segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates.\n\n$document = \u0027null\u0027;\nfor ($i = 0; $i \u003c 40; ++$i) {\n    $document = \u0027{\"a\":\u0027.$document.\u0027,\"b\":1}\u0027;\n}\n\n// 484 bytes\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*\u0027);    // 19760 nodes, 0.42 s, 35 MB\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*..*\u0027); // 182780 nodes, 77 s, 256 MB\n\nEach additional ..* multiplies the time and the memory. Other queries hold the process the same way, because work that doesn\u0027t depend on the node is repeated for each node. Unions that repeat a selector, like $[0,0,0,0,0][0,0,0,0,0], multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like length(length(...(@.a)...)) are scanned again at each level. Operands that don\u0027t refer to @, like length($.text) or $ == $, are computed again for each node. And a query of a few megabytes exhausts the memory before it\u0027s even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte $[?$==$] took 11.5 s on an 80 KB document.\n\nThe threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting.\n\nJsonCrawler::find() now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a JsonCrawlerException, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included.\n\nOperands that don\u0027t refer to @ are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they\u0027re parsed."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400 Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "CWE-407 Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:04.891Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-133744",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-133744"
            },
            {
              "name": "GHSA-9624-f7p7-fwvr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-9624-f7p7-fwvr"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/1f5b062649db1a8b38be1a56b99583cc10dfb007"
            }
          ],
          "source": {
            "advisory": "GHSA-9624-f7p7-fwvr",
            "discovery": "UNKNOWN"
          },
          "title": "JsonPath Queries Can Still Hold a Process Through Duplicated Nodes and Repeated Work: Incomplete Fix for CVE-2026-135804",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-133744",
        "datePublished": "2026-11-25T10:00:04.891Z",
        "dateReserved": "2026-11-20T14:01:43.157Z",
        "dateUpdated": "2026-11-25T10:00:04.891Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-135804 (GCVE-0-2026-135804)

    Vulnerability from nvd – Published: 2026-11-24 08:55 – Updated: 2026-11-24 08:55
    VLAI
    Title
    Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters
    Summary
    The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10000 around each preg_match() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work. Two other paths made the cost of a query grow faster than its size, without any regular expression: - The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses. - Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits. An application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU. JsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query.
    Severity
    No CVSS data available.
    CWE
    • CWE-400 - Uncontrolled Resource Consumption
    • CWE-407 - Inefficient Algorithmic Complexity
    • CWE-1333 - Inefficient Regular Expression Complexity
    Impacted products
    Vendor Product Version
    Symfony symfony/json-path Affected: 7.3.0 , < 7.4.23 (semver)
    Affected: 8.0.0 , < 8.1.11 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 7.3.0 , < 7.4.23 (semver)
    Affected: 8.0.0 , < 8.1.11 (semver)
    Create a notification for this product.
    Date Public
    2026-11-04 11:43
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/json-path",
              "product": "symfony/json-path",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.23",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.11",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.23",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.11",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Kamil Vavra"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-04T11:43:33.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fix for CVE-2026-45756 lowers `pcre.backtrack_limit` to 10000 around each `preg_match()` call of the `match()` and `search()` filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work.\n\nTwo other paths made the cost of a query grow faster than its size, without any regular expression:\n\n- The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses.\n- Queries starting with `$` inside a filter, like `@.x == $.limit` or `length($.items)`, were evaluated again for every node the filter visits.\n\nAn application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU.\n\n`JsonCrawler::find()` now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query."
                }
              ],
              "value": "The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10000 around each preg_match() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work.\n\nTwo other paths made the cost of a query grow faster than its size, without any regular expression:\n- The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses.\n- Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits.\n\nAn application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU.\n\nJsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query."
            }
          ],
          "metrics": [
            {
              "other": {
                "content": {
                  "text": "medium"
                },
                "type": "Textual description of severity"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400 Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "CWE-407 Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-1333",
                  "description": "CWE-1333 Inefficient Regular Expression Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T08:55:17.841Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-135804",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-135804"
            },
            {
              "name": "GHSA-cpww-5vpx-72x7",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/11650dc31f03badb5d24199a1023539ae6380ff2"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/df0d7dc6b1fd7a671be3a6519a82047bb2ab6b47"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/45e44c5e228c131185e334c7ba390d51ea4517f8"
            }
          ],
          "source": {
            "advisory": "GHSA-cpww-5vpx-72x7",
            "discovery": "UNKNOWN"
          },
          "title": "Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-135804",
        "datePublished": "2026-11-24T08:55:17.841Z",
        "dateReserved": "2026-11-24T08:54:00.511Z",
        "dateUpdated": "2026-11-24T08:55:17.841Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-133744 (GCVE-0-2026-133744)

    Vulnerability from cvelistv5 – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    JsonPath Queries Can Still Hold a Process Through Duplicated Nodes and Repeated Work: Incomplete Fix for CVE-2026-135804
    Summary
    The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a JsonCrawler::find() call, and evaluate filters and absolute queries once per call. Chained recursive descent isn't bounded. Each ..* segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates. $document = 'null'; for ($i = 0; $i < 40; ++$i) { $document = '{"a":'.$document.',"b":1}'; } // 484 bytes (new JsonCrawler($document))->find('$..*..*..*'); // 19760 nodes, 0.42 s, 35 MB (new JsonCrawler($document))->find('$..*..*..*..*'); // 182780 nodes, 77 s, 256 MB Each additional ..* multiplies the time and the memory. Other queries hold the process the same way, because work that doesn't depend on the node is repeated for each node. Unions that repeat a selector, like $[0,0,0,0,0][0,0,0,0,0], multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like length(length(...(@.a)...)) are scanned again at each level. Operands that don't refer to @, like length($.text) or $ == $, are computed again for each node. And a query of a few megabytes exhausts the memory before it's even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte $[?$==$] took 11.5 s on an 80 KB document. The threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting. JsonCrawler::find() now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a JsonCrawlerException, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included. Operands that don't refer to @ are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they're parsed.
    CWE
    • CWE-400 - Uncontrolled Resource Consumption
    • CWE-407 - Inefficient Algorithmic Complexity
    Impacted products
    Vendor Product Version
    Symfony symfony/json-path Affected: 7.3.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 7.3.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:35
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/json-path",
              "product": "symfony/json-path",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:35:53.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a `JsonCrawler::find()` call, and evaluate filters and absolute queries once per call. Chained recursive descent isn\u0027t bounded. Each `..*` segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates.\n\n```php\n$document = \u0027null\u0027;\nfor ($i = 0; $i \u003c 40; ++$i) {\n    $document = \u0027{\"a\":\u0027.$document.\u0027,\"b\":1}\u0027;\n}\n\n// 484 bytes\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*\u0027);    // 19760 nodes, 0.42 s, 35 MB\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*..*\u0027); // 182780 nodes, 77 s, 256 MB\n```\n\nEach additional `..*` multiplies the time and the memory. Other queries hold the process the same way, because work that doesn\u0027t depend on the node is repeated for each node. Unions that repeat a selector, like `$[0,0,0,0,0][0,0,0,0,0]`, multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like `length(length(...(@.a)...))` are scanned again at each level. Operands that don\u0027t refer to `@`, like `length($.text)` or `$ == $`, are computed again for each node. And a query of a few megabytes exhausts the memory before it\u0027s even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte `$[?$==$]` took 11.5 s on an 80 KB document.\n\nThe threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting.\n\n`JsonCrawler::find()` now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a `JsonCrawlerException`, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included.\n\nOperands that don\u0027t refer to `@` are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they\u0027re parsed."
                }
              ],
              "value": "The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a JsonCrawler::find() call, and evaluate filters and absolute queries once per call. Chained recursive descent isn\u0027t bounded. Each ..* segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates.\n\n$document = \u0027null\u0027;\nfor ($i = 0; $i \u003c 40; ++$i) {\n    $document = \u0027{\"a\":\u0027.$document.\u0027,\"b\":1}\u0027;\n}\n\n// 484 bytes\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*\u0027);    // 19760 nodes, 0.42 s, 35 MB\n(new JsonCrawler($document))-\u003efind(\u0027$..*..*..*..*\u0027); // 182780 nodes, 77 s, 256 MB\n\nEach additional ..* multiplies the time and the memory. Other queries hold the process the same way, because work that doesn\u0027t depend on the node is repeated for each node. Unions that repeat a selector, like $[0,0,0,0,0][0,0,0,0,0], multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like length(length(...(@.a)...)) are scanned again at each level. Operands that don\u0027t refer to @, like length($.text) or $ == $, are computed again for each node. And a query of a few megabytes exhausts the memory before it\u0027s even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte $[?$==$] took 11.5 s on an 80 KB document.\n\nThe threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting.\n\nJsonCrawler::find() now builds node lists in linear time, and bounds the work of one call. The budget is 100,000 nodes, plus 32 for each value of the decoded document once the first 100,000 are spent. The selected nodes count, and so do the children that brackets and descents look at. Filter operands and their parts, deep comparisons and regular expressions count too. A query that needs more throws a JsonCrawlerException, also inside an existence test, instead of running until the process is stopped. Queries under the limit return the same nodes as before, duplicates included.\n\nOperands that don\u0027t refer to @ are now evaluated once per call. Queries longer than 100,000 bytes and filters longer than 10,000 bytes are rejected before they\u0027re parsed."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400 Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "CWE-407 Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:04.891Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-133744",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-133744"
            },
            {
              "name": "GHSA-9624-f7p7-fwvr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-9624-f7p7-fwvr"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/1f5b062649db1a8b38be1a56b99583cc10dfb007"
            }
          ],
          "source": {
            "advisory": "GHSA-9624-f7p7-fwvr",
            "discovery": "UNKNOWN"
          },
          "title": "JsonPath Queries Can Still Hold a Process Through Duplicated Nodes and Repeated Work: Incomplete Fix for CVE-2026-135804",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-133744",
        "datePublished": "2026-11-25T10:00:04.891Z",
        "dateReserved": "2026-11-20T14:01:43.157Z",
        "dateUpdated": "2026-11-25T10:00:04.891Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-135804 (GCVE-0-2026-135804)

    Vulnerability from cvelistv5 – Published: 2026-11-24 08:55 – Updated: 2026-11-24 08:55
    VLAI
    Title
    Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters
    Summary
    The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10000 around each preg_match() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work. Two other paths made the cost of a query grow faster than its size, without any regular expression: - The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses. - Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits. An application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU. JsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query.
    Severity
    No CVSS data available.
    CWE
    • CWE-400 - Uncontrolled Resource Consumption
    • CWE-407 - Inefficient Algorithmic Complexity
    • CWE-1333 - Inefficient Regular Expression Complexity
    Impacted products
    Vendor Product Version
    Symfony symfony/json-path Affected: 7.3.0 , < 7.4.23 (semver)
    Affected: 8.0.0 , < 8.1.11 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 7.3.0 , < 7.4.23 (semver)
    Affected: 8.0.0 , < 8.1.11 (semver)
    Create a notification for this product.
    Date Public
    2026-11-04 11:43
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/json-path",
              "product": "symfony/json-path",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.23",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.11",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "7.4.23",
                  "status": "affected",
                  "version": "7.3.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.11",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Kamil Vavra"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-04T11:43:33.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fix for CVE-2026-45756 lowers `pcre.backtrack_limit` to 10000 around each `preg_match()` call of the `match()` and `search()` filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work.\n\nTwo other paths made the cost of a query grow faster than its size, without any regular expression:\n\n- The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses.\n- Queries starting with `$` inside a filter, like `@.x == $.limit` or `length($.items)`, were evaluated again for every node the filter visits.\n\nAn application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU.\n\n`JsonCrawler::find()` now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query."
                }
              ],
              "value": "The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10000 around each preg_match() call of the match() and search() filter functions. That limit applies to one starting position, not to one call. PCRE resets its counter at every position it tries a match from. So an unanchored pattern that stays just under the limit is paid once per byte of the subject. Each call also starts from a fresh limit, so chaining clauses in one filter multiplies the work.\n\nTwo other paths made the cost of a query grow faster than its size, without any regular expression:\n- The filter evaluator scanned the whole expression for logical operators once per node. Its cost grew with the square of the number of chained clauses.\n- Queries starting with $ inside a filter, like @.x == $.limit or length($.items), were evaluated again for every node the filter visits.\n\nAn application that evaluates an attacker-influenced JSONPath expression can therefore still be made to hold a PHP worker. A document of 2 MB and a query of 2.5 KB take 3.5 minutes of CPU.\n\nJsonCrawler::find() now bounds the total regex work of one call, and throws an exception when that budget is exhausted. Filter expressions are parsed once per query, and absolute queries inside filters are evaluated once per query."
            }
          ],
          "metrics": [
            {
              "other": {
                "content": {
                  "text": "medium"
                },
                "type": "Textual description of severity"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400 Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "CWE-407 Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-1333",
                  "description": "CWE-1333 Inefficient Regular Expression Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-24T08:55:17.841Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-135804",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-135804"
            },
            {
              "name": "GHSA-cpww-5vpx-72x7",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/11650dc31f03badb5d24199a1023539ae6380ff2"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/df0d7dc6b1fd7a671be3a6519a82047bb2ab6b47"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/45e44c5e228c131185e334c7ba390d51ea4517f8"
            }
          ],
          "source": {
            "advisory": "GHSA-cpww-5vpx-72x7",
            "discovery": "UNKNOWN"
          },
          "title": "Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-135804",
        "datePublished": "2026-11-24T08:55:17.841Z",
        "dateReserved": "2026-11-24T08:54:00.511Z",
        "dateUpdated": "2026-11-24T08:55:17.841Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }