CVE-2022-23614Symfony Twig
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Symfony · Symfony Twig Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- 6.6% probabilidad de explotación en 30 días · percentil 95
- Requiere autenticación
- No
- Publicada
- 4 feb 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Twig.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | twig/twig |
≥ 2.0.0 < 2.14.11 |
2.14.11 |
composer require "twig/twig:^2.14.11" |
| Packagist | twig/twig |
≥ 3.0.0 < 3.3.8 |
3.3.8 |
composer require "twig/twig:^3.3.8" |
Según OSV / GitHub Advisories (GHSA-5mv2-rx3q-4w2v). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| symfony | twig | ≥ 2.0.0 < 2.14.11 |
| symfony | twig | ≥ 3.0.0 < 3.3.8 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| debian | debian_linux | 11.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.debian.org Third Party Advisory