Descrizione

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.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.8% (percentile 53).

Versioni da aggiornare

  • Symfony symfony/json-path: vulnerabili le versioni dalla 7.3.0 precedenti alla 7.4.23 → aggiornare alla 7.4.23 o successiva.
  • Symfony symfony/json-path: vulnerabili le versioni dalla 8.0.0 precedenti alla 8.1.11 → aggiornare alla 8.1.11 o successiva.
  • Symfony symfony/symfony: vulnerabili le versioni dalla 7.3.0 precedenti alla 7.4.23 → aggiornare alla 7.4.23 o successiva.
  • Symfony symfony/symfony: vulnerabili le versioni dalla 8.0.0 precedenti alla 8.1.11 → aggiornare alla 8.1.11 o successiva.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Symfony symfony/json-path ≥ 7.3.0 < 7.4.23 7.4.23
Symfony symfony/json-path ≥ 8.0.0 < 8.1.11 8.1.11
Symfony symfony/symfony ≥ 7.3.0 < 7.4.23 7.4.23
Symfony symfony/symfony ≥ 8.0.0 < 8.1.11 8.1.11

Riferimenti