- Accueil
- Vulnérabilités
- CVE-2026-135804
CVE-2026-135804
Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through search(), match() and Chained Filters
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Symfony (4 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| symfony/json-path | de 7.3.0 (inclus) à 7.4.23 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/json-path | de 8.0.0 (inclus) à 8.1.11 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/symfony | de 7.3.0 (inclus) à 7.4.23 (exclu) |
— | CNA (éditeur ou attributeur) |
| symfony/symfony | de 8.0.0 (inclus) à 8.1.11 (exclu) |
— | CNA (éditeur ou attributeur) |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/symfony/symfony/commit/11650dc31f03badb5d24199a1023539ae6380ff2patch
- https://github.com/symfony/symfony/commit/df0d7dc6b1fd7a671be3a6519a82047bb2ab6b47patch
- https://github.com/symfony/symfony/commit/45e44c5e228c131185e334c7ba390d51ea4517f8patch
- https://symfony.com/cve-2026-135804vendor-advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-cpww-5vpx-72x7vendor-advisory
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1, CNA:134c704f-9b21-4f2e-91b3-4a467353bcc0)- Faiblesse
- CWE-400 · Autre (CWE-400)