Read the docs

JsonPath Queries Hold the Process Through Duplicated Nodes and Repeated Work

Priority LOW 29CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-400.

Summary

Symfony's symfony/json-path package and the symfony/symfony package are affected from 7.3.0 before 7.4.24 and from 8.0.0 before 8.1.12. Chained recursive descent and repeated work, such as filter operands re-evaluated for each node, make the node list grow as a power of the document depth (CWE-407, CWE-400). A remote, unauthenticated attacker who can submit a query to an application that runs it on its own document can hold the process for a long time, and the process can exhaust its memory.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

EPSS 0.00653 46th percentileScored 2026-11-30
Fix Fixed symfony/json-path (Symfony): 7.4.24, 8.1.12symfony/symfony (Symfony): 7.4.24, 8.1.12

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony/json-path7.3.0 to before 7.4.24; 8.0.0 to before 8.1.127.4.24, 8.1.12Patch availableCNA
symfonysymfony/symfony7.3.0 to before 7.4.24; 8.0.0 to before 8.1.127.4.24, 8.1.12Patch availableCNA
  • symfony/json-path Vendorsymfony Affected 7.3.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 7.4.24, 8.1.12 Patch available CNA
  • symfony/symfony Vendorsymfony Affected 7.3.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 7.4.24, 8.1.12 Patch available CNA

Remediation

Upgrade symfony/json-path and symfony/symfony to 7.4.24 on the 7.x branch or to 8.1.12 on the 8.x branch.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA symfony/json-path (Symfony) Fixed in 7.4.24, 8.1.12
  • Fix · CNA symfony/symfony (Symfony) Fixed in 7.4.24, 8.1.12

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    symfony/symfony 7.4.24, 8.1.12

    7 records Highest priority Priority LOW 7 LOW

    Other records, highest priority first

    • TI-2026-98152 Unclosed comments make Symfony ExpressionLanguage lexer quadraticPriority LOW 39
    • TI-2026-98139 Symfony Mailer require_tls check is skipped on HELO fallbackPriority LOW 29
    • TI-2026-98150 Symfony HTTP workers in CLI mode leak full exception dumpsPriority LOW 28

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-133744

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
  • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
  • TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
See all 129 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences