CVE-2026-45756

Symfony: JsonPath Evaluates Attacker-Controlled Regular Expressions in match()/search() Without Limits — ReDoS

Published Jul 14, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 7.3.0-BETA1 until 7.4.12 and 8.0.12, the JsonPath component compiles attacker-controlled match() and search() filter patterns directly into preg_match() without a length cap, i-regexp restriction, or bounded backtracking, allowing catastrophic-backtracking expressions to pin worker CPU and cause denial of service. This issue is fixed in versions 7.4.12 and 8.0.12.

Analysis

AI-generated

Technical impact

The Symfony JsonPath component, present in Symfony versions 7.3.0-BETA1 through 7.4.11 and 8.0.x prior to 8.0.12, compiles user-controlled match() and search() filter patterns directly into PHP’s preg_match() without imposing any length, i-regexp, or back‑tracking limits. This allows an attacker to supply malicious regular expressions that trigger catastrophic back‑tracking, exhausting CPU resources and leading to a denial of service. The flaw falls under CWE-1333 and CWE-400, reflecting its reliance on regex engine exploitation and resource exhaustion, while confidentiality and integrity remain unaffected.

Affected Systems

All Symfony releases that include the JsonPath component from the 7.3.0-BETA1 series through 7.4.11 and all 8.0.x releases prior to 8.0.12 are affected. The fix was introduced in Symfony 7.4.12 and 8.0.12, which are the earliest versions that contain the mitigation.

Risk and Exploitability

With a CVSS score of 8.2, this vulnerability is considered High severity. The EPSS score is reported to be below 1 percent, indicating a very low current probability of exploitation, and the issue is not listed in the CISA KEV catalog. Attackers would need to supply a malicious JSON payload containing the crafted Regex to an application that passes it to JsonPath match() or search(). The lack of public exploitation data and the low EPSS suggest that immediate patching is prudent, though the attack surface remains flammable for targeted denial-of-service campaigns.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Symfony 7.4.12 or later, or to 8.0.12 or later, to apply the official fix.
  • If an upgrade is not possible in the short term, audit all instances of JsonPath match() or search() that incorporate user-controlled patterns, and remove or sanitize any regex construction before it is evaluated.
  • As a temporary barrier, enforce strict limits on the size of incoming JSON payloads and reject requests that exceed a safe threshold to mitigate potential CPU exhaustion.

Generated by OpenCVE AI on August 1, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8v8v-g73j-492j Symfony's JsonPath Evaluates Attacker-Controlled Regular Expressions in match()/search() Without Limits — ReDoS
History
Type Values Removed Values Added
First Time appeared Symfony
Symfony json-path
Symfony symfony
Vendors & Products Symfony
Symfony json-path
Symfony symfony
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 7.3.0-BETA1 until 7.4.12 and 8.0.12, the JsonPath component compiles attacker-controlled match() and search() filter patterns directly into preg_match() without a length cap, i-regexp restriction, or bounded backtracking, allowing catastrophic-backtracking expressions to pin worker CPU and cause denial of service. This issue is fixed in versions 7.4.12 and 8.0.12.
Title Symfony: JsonPath Evaluates Attacker-Controlled Regular Expressions in match()/search() Without Limits — ReDoS
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 21, 2026, 6:48 PM
Reserved
May 13, 2026, 6:54 AM
Status
Analyzed
Published
Jul 14, 2026, 6:17 PM
Modified
Jul 21, 2026, 7:17 PM