Intel

AIKIDO-2026-10877

symfony/json-path is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS)CVE-2026-45756 Published May 21, 2026

65

Medium Risk

This Affects:

PHPsymfony/json-path
7.3.0 - 7.4.11
Fixed in 7.4.12
8.0.0 - 8.0.11
Fixed in 8.0.12
Are you affected? Scan for Free

TL;DR

JsonPath passes patterns from match() and search() filters directly into preg_match(). An attacker-controlled JSONPath expression can supply a catastrophic-backtracking regular expression. Pre-fix applications that evaluate untrusted JSONPath expressions can have workers pinned by CPU exhaustion. The fix bounds PCRE backtracking during these matches so pathological expressions fail quickly.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/json-path is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 7.3.0 - 7.4.11 and 8.0.0 - 8.0.11.

How to fix this

Upgrade the symfony/json-path and/or symfony/symfony library to the patch version.