All vulnerabilities

Servers and applications

CVE-2026-45756

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

Severity
Medium
Published
20 May 2026
Last changed
20 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
7.4.12, 8.0.12
Exploit chance
0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)Regular expression denial of service (ReDoS) (CWE-1333)
Also known as
GHSA-8v8v-g73j-492j
Sources
Project advisories (GitHub)

Description

The JsonPath component's match() and search() filter functions compile a caller-supplied pattern straight into preg_match():

transformJsonPathRegex() only performs cosmetic escaping: there is no length cap, no restriction to the RFC 9485 i-regexp subset, and no bound on backtracking. An application that evaluates an attacker-influenced JSONPath expression server-side (e.g. one taken from a query parameter or API field and passed to JsonCrawler) can therefore be made to run a catastrophic-backtracking pattern such as $[?search(@, "(a+)+$")]. Evaluated against a moderately sized document, this pins a CPU core for seconds per request, so a handful of concurrent requests exhausts the worker pool: a denial of service. Because the preg_match() calls are prefixed with @, the PCRE backtrack-limit errors that would otherwise surface are suppressed, leaving no log trace.

From symfony/symfony's security advisory.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • From 7.3 before 7.4.12
  • From 8.0 before 8.0.12

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
321,952Packagist, 15 Nov 2026
Total downloads (Packagist)
88,437,595Packagist, 15 Nov 2026
GitHub stars
31,439GitHub, 15 Nov 2026
Forks
9,949GitHub, 15 Nov 2026
Latest release
v8.2.0-BETA2GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Developer
SensioLabsWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
22 Oct 2005Wikidata
First published on GitHub
4 Jan 2010GitHub

Release lines

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

References