Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.
Resumen
CVE-2026-133744: vulnerabilidad de severidad media (CVSS 6.3) en Symfony symfony/json-path.
Qué ocurre
Descripción original de la fuente (en inglés): The fixes for CVE-2026-135804 (GHSA-cpww-5vpx-72x7) bound the regex work of a JsonCrawler::find() call, and evaluate filters and absolute queries once per call. Chained recursive descent isn't bounded. Each ..* segment takes the descendants of every node selected so far. A node nested in other selected nodes is counted once per such ancestor. So the size of the node list is a power of the depth, one power per segment. RFC 9535 allows these duplicates. $document = 'null'; for ($i = 0; $i < 40; ++$i) { $document = '{"a":'.$document.',"b":1}'; } // 484 bytes (new JsonCrawler($document))->find('$..*..*..*'); // 19760 nodes, 0.42 s, 35 MB (new JsonCrawler($document))->find('$..*..*..*..*'); // 182780 nodes, 77 s, 256 MB Each additional ..* multiplies the time and the memory. Other queries hold the process the same way, because work that doesn't depend on the node is repeated for each node. Unions that repeat a selector, like $[0,0,0,0,0][0,0,0,0,0], multiply the node list at each segment. Every filter operand is parsed again for each node, and nested function calls like length(length(...(@.a)...)) are scanned again at each level. Operands that don't refer to @, like length($.text) or $ == $, are computed again for each node. And a query of a few megabytes exhausts the memory before it's even parsed. A 3 KB query took 10 s on an 801-byte document, and the 8-byte $[?$==$] took 11.5 s on an 80 KB document. The threat model is the one of CVE-2026-135804, where an application runs a query chosen by the client on its own document. A short query is enough to hold the process when the document is nested a few dozen levels deep. A larger document needs less nesting. JsonCrawler::find(…
Por qué importa
Severidad media, CVSS 6.3.
Productos y versiones afectados
Symfony symfony/json-path >= 7.3.0, < 7.4.24; Symfony symfony/json-path >= 8.0.0, < 8.1.12; Symfony symfony/symfony >= 7.3.0, < 7.4.24; Symfony symfony/symfony >= 8.0.0, < 8.1.12
| Producto | Versiones | Corregido en |
|---|---|---|
| Symfony symfony/json-path | >= 7.3.0, < 7.4.24 | — |
| Symfony symfony/json-path | >= 8.0.0, < 8.1.12 | — |
| Symfony symfony/symfony | >= 7.3.0, < 7.4.24 | — |
| Symfony symfony/symfony | >= 8.0.0, < 8.1.12 | — |
Acción recomendada por la fuente
Consultá las referencias oficiales para conocer la corrección o mitigación.
Fuentes y referencias
- https://symfony.com/cve-2026-133744 — CVE Program
- https://github.com/symfony/symfony/security/advisories/GHSA-9624-f7p7-fwvr — CVE Program
- https://github.com/symfony/symfony/commit/1f5b062649db1a8b38be1a56b99583cc10dfb007 — CVE Program
Debilidades (CWE): CWE-400, CWE-407
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.