Read the docs

Incomplete fix lets Symfony JsonPath queries hold a PHP process

Priority MEDIUM 40CWE-1333Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-1333.

Summary

symfony/json-path and symfony/symfony from 7.3.0 before 7.4.23 and from 8.0.0 before 8.1.11 are affected by an incomplete fix for CVE-2026-45756 (CWE-1333, CWE-407). The pcre.backtrack_limit applies per starting position, not per call, so an unanchored pattern can be paid once per byte of the subject, and each chained filter clause starts a fresh limit. A remote attacker who can influence a JSONPath expression, without privileges or user interaction, can hold a PHP worker: a 2 MB document with a 2.5 KB query takes 3.5 minutes of CPU.

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

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00801 53rd percentileScored 2026-11-30
Fix Fixed symfony/json-path (Symfony): 7.4.23, 8.1.11symfony/symfony (Symfony): 7.4.23, 8.1.11

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

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

Remediation

Update symfony/json-path and symfony/symfony to 7.4.23 or 8.1.11, the fixed versions for their branches. The patched JsonCrawler::find() bounds the total regex work of one call and throws an exception when that budget is exhausted.

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

  • Fix · CNA symfony/json-path (Symfony) Fixed in 7.4.23, 8.1.11
  • Fix · CNA symfony/symfony (Symfony) Fixed in 7.4.23, 8.1.11

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-135804
  2. 2026-11-24 Alias added: GHSA-746f-456f-6cqc
  3. 2026-11-25 CVSS score added · CISA ADP
  4. 2026-11-25 CISA SSVC decision points changed
  5. 2026-11-26 EPSS moved to the 50th–90th percentile

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