Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters

Summary

CVECVE-2026-135804
StatePUBLISHED
AssignerSymfony
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-24 09:17:08 UTC
Updated2026-11-24 09:17:08 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: CWE-400 | CWE-407 | CWE-1333 | CWE-400 CWE-400 Uncontrolled Resource Consumption | CWE-407 CWE-407 Inefficient Algorithmic Complexity | CWE-1333 CWE-1333 Inefficient Regular Expression Complexity

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Symfony Symfony/json-path affected 7.3.0 7.4.23 semver Not specified
CNA Symfony Symfony/json-path affected 8.0.0 8.1.11 semver Not specified
CNA Symfony Symfony/symfony affected 7.3.0 7.4.23 semver Not specified
CNA Symfony Symfony/symfony affected 8.0.0 8.1.11 semver Not specified

References

ReferenceSourceLinkTags
github.com/symfony/symfony/commit/df0d7dc6b1fd7a671be3a6519a82047bb2ab6b47 b5aa5c7f-767d-4597-9c64-3ac08b8711c6 github.com
github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7 b5aa5c7f-767d-4597-9c64-3ac08b8711c6 github.com
symfony.com/cve-2026-135804 b5aa5c7f-767d-4597-9c64-3ac08b8711c6 symfony.com
github.com/symfony/symfony/commit/45e44c5e228c131185e334c7ba390d51ea4517f8 b5aa5c7f-767d-4597-9c64-3ac08b8711c6 github.com
github.com/symfony/symfony/commit/11650dc31f03badb5d24199a1023539ae6380ff2 b5aa5c7f-767d-4597-9c64-3ac08b8711c6 github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Kamil Vavra (en)

CNA: Nicolas Grekas (en)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report