CVE Watchtower

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

NVD

Vulnerability 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 Level
UNKNOWN
Published Date
Nov 24, 2026
Last Modified
Nov 24, 2026
Exploitation Status
No confirmed exploitation yet
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.
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Affected & Patched Versions

Affected Versions
  • symfony/json-path >= 7.3.0 and < 7.4.23
  • symfony/json-path >= 8.0.0 and < 8.1.11
  • symfony/symfony >= 7.3.0 and < 7.4.23
  • symfony/symfony >= 8.0.0 and < 8.1.11
Patched Versions
  • symfony/json-path 7.4.23
  • symfony/json-path 8.1.11
  • symfony/symfony 7.4.23
  • symfony/symfony 8.1.11

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 24, 2026Published
  • Nov 24, 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-135804. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 24, 2026 09:33 UTC