CVE Watchtower

CVE-2026-133744symfony/json-path Uncontrolled Resource Consumption

NVD

Vulnerability 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.
Severity Level
MEDIUM(6.3)
Published Date
Nov 25, 2026
Last Modified
Nov 25, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Published
Root Weakness (CWE)
The product does not properly control the allocation and maintenance of a limited resource, enabling denial-of-service conditions.
An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
CVSS v4.0 Base Metrics — Score 6.3 (MEDIUM)
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
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None

Affected & Patched Versions

Affected Versions
  • symfony/json-path >= 7.3.0 and < 7.4.24
  • symfony/json-path >= 8.0.0 and < 8.1.12
  • symfony/symfony >= 7.3.0 and < 7.4.24
  • symfony/symfony >= 8.0.0 and < 8.1.12
Patched Versions
  • symfony/json-path 7.4.24
  • symfony/json-path 8.1.12
  • symfony/symfony 7.4.24
  • symfony/symfony 8.1.12

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run symfony/json-path and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Nov 25, 2026Published
  • Nov 25, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new symfony/json-path CVEsYou are reading CVE-2026-133744. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 25, 2026 11:01 UTC