An attacker who can influence a JSONPath query your app runs can keep a PHP worker busy for minutes. Symfony's advisory measured 3.5 minutes of CPU for a 2.5 KB query on a 2 MB document. Send enough of these and your app stops answering.

How it works

The fix for CVE-2026-45756 capped the work of each regular expression in match() and search() filters. The cap applied to each starting position rather than to the whole call, so a long document still multiplied the cost. Long chains of filter clauses and some nested queries also made the cost grow much faster than the query's size. See the Symfony advisory.

Apps that only run fixed queries they wrote themselves aren't exposed. The fix puts a budget on the regular expression work in one find() call and throws an exception when it runs out. Filters are also parsed once per query.