Symfony JSON Path denial of service in JSON path filter evaluation
Affects symfony/json-path and symfony/symfony 7.3.0 to before 7.4.23 and 8.0.0 to before 8.1.11 when an application evaluates attacker-influenced JSONPath expressions. Fixed in 7.4.23 and 8.1.11.
- Exploited
- No known exploitation
- Fix
- Fixed in 7.4.23, 8.1.11
- Who is exposed
- Not reported
Summary
Symfony's json-path package (symfony/json-path) and the symfony/symfony package can be made to tie up a PHP worker for minutes when an application evaluates a JSONPath expression that an attacker can influence. Crafted filter queries, including regular expressions, make the processing cost grow far beyond the query's size.
Written by a model
Original description
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.
Who should check
Teams running symfony/json-path or symfony/symfony 7.3.x to 8.1.x that evaluate attacker-influenced JSONPath queries, including search(), match() and chained filters.
Not fixed by: Capping pcre.backtrack_limit per call, as in CVE-2026-45756, does not bound the total cost of a query.
“Symfony JSON Path versions >=7.3.0, <7.4.23, >=8.0.0, <8.1.11 are affected by this security issue.”
What to do
Upgrade to a fixed version: 7.4.23, 8.1.11.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-135804 (Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-135804 (entry last updated 2026-11-24):
Affected:
- Packagist package symfony/json-path: from 7.3.0, fixed in 7.4.23; from 8.0.0, fixed in 8.1.11
- Packagist package symfony/symfony: from 7.3.0, fixed in 7.4.23; from 8.0.0, fixed in 8.1.11
Fixed versions: 7.4.23, 8.1.11.
Conditions (all must be true for the bug to be hit):
- symfony/json-path versions >=7.3.0 <7.4.23 or >=8.0.0 <8.1.11 (also symfony/symfony in the same ranges) (source: https://symfony.com/blog/ghsa-cpww-5vpx-72x7-incomplete-fix-for-cve-2026-45756-jsonpath-search-match-and-chained-filters-can-hold-a-process)
- The application evaluates an attacker-influenced JSONPath expression (source: https://symfony.com/blog/ghsa-cpww-5vpx-72x7-incomplete-fix-for-cve-2026-45756-jsonpath-search-match-and-chained-filters-can-hold-a-process)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-135804 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-135804 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Packagist): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://symfony.com/cve-2026-135804
- https://github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7
- https://github.com/symfony/symfony/commit/11650dc31f03badb5d24199a1023539ae6380ff2
- https://github.com/symfony/symfony/commit/df0d7dc6b1fd7a671be3a6519a82047bb2ab6b47
- https://github.com/symfony/symfony/commit/45e44c5e228c131185e334c7ba390d51ea4517f8
- https://symfony.com/blog/ghsa-cpww-5vpx-72x7-incomplete-fix-for-cve-2026-45756-jsonpath-search-match-and-chained-filters-can-hold-a-process
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-135804
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-135804"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. Advisories don't say whether default setups are affected
- Reach10/20Affects Packagist packages
- Severity4/10Rated medium by Symfony
- No patch0/5No signal
What would change the score
- Would score about 69 if added to CISA KEV
- Would score about 64 if CISA's SSVC rates exploitation active
- Would score about 36 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | symfony.com · cve-2026-135804 |
| Advisory | GitHub · symfony/symfony · Advisory GHSA-cpww-5vpx-72x7 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-135804 |
| Record | NVD · CVE-2026-135804 |
| Other links 3 | |
| Patch | GitHub · symfony/symfony · Commit 11650dc3 |
| Patch | GitHub · symfony/symfony · Commit df0d7dc6 |
| Patch | GitHub · symfony/symfony · Commit 45e44c5e |
Questions about CVE-2026-135804
Is CVE-2026-135804 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
The earlier fix for CVE-2026-45756 missed some JSONPath queries. Queries using search(), match() and chained filters can still hold a PHP worker for minutes, using CPU, when given a crafted query and document, which is a denial of service.
Source: symfony.com
Which versions are affected by CVE-2026-135804?
symfony/json-path (Packagist): from 7.3.0 before 7.4.23; from 8.0.0 before 8.1.11. symfony/symfony (Packagist): from 7.3.0 before 7.4.23; from 8.0.0 before 8.1.11.
Source: cve.now feed data
Am I affected, and how do I check?
Symfony json-path and symfony/symfony versions from 7.3.0 before 7.4.23, and from 8.0.0 before 8.1.11. To check, look at the installed symfony/json-path version in composer.lock or run composer show symfony/json-path. The issue applies where the application evaluates an attacker-influenced JSONPath expression.
Source: symfony.com
How do I fix CVE-2026-135804?
Upgrade symfony/json-path to 7.4.23 or 8.1.11, or symfony/symfony to the same fixed releases in its branch.
Source: symfony.com
Related
- CVE-2026-45069Symfony: OidcTokenHandler Accepts JWTs Missing aud/iss/exp Claims
- CVE-2026-109413Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process
- CVE-2026-108082Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
- CVE-2026-48489Symfony: Security Firewall Bypass via failure_forward Subrequest: Unauthenticated Access to access_control-Protected GET Routes
- CVE-2026-45068Symfony: Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address
- CVE-2026-45071Symfony: XXE (Local File Disclosure) in DomCrawler::addXmlContent() via validateOnParse = true
No corrections so far. Something wrong on this page? Report an error.