Drupal core - SA-CORE-2022-016
Drupal uses the Twig third-party library for content templating and sanitization. Twig has released a security update that affects Drupal. Twig has rated the vulnerability as high severity.
Drupal core's code extending Twig has also been updated to mitigate a related vulnerability.
Multiple vulnerabilities are possible if an untrusted user has access to write Twig code, including potential unauthorized read access to private files, the contents of other files on the server, or database credentials.
The vulnerability is mitigated by the fact that an exploit is only possible in Drupal core with a restricted access administrative permission. Additional exploit paths for the same vulnerability may exist with contributed or custom code that allows users to write Twig templates.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de Composer | drupal/core | >= 8.0.0, < 9.3.22, >= 9.4.0, < 9.4.7 | 9.3.22, 9.4.7 |
| Paquete de Composer | twig/twig | >= 1.0.0, < 1.44.7, >= 2.0.0, < 2.15.3, >= 3.0.0, < 3.4.3 | 1.44.7, 2.15.3, 3.4.3 |
| Drupal (núcleo) | drupal/core | >= 8.0.0, < 9.3.22, >= 9.4.0, < 9.4.7 | 9.3.22, 9.4.7 |
Referencias
- https://github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33
- https://nvd.nist.gov/vuln/detail/CVE-2022-39261
- https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2022-39261.yaml
- https://github.com/twigphp/Twig
- https://lists.debian.org/debian-lts-announce/2022/10/msg00016.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2OKRUHPVLIQVFPPJ2UWC3WV3WQO763NR
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AUVTXMNPSZAHS3DWZEM56V5W4NPVR6L7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NWRFPZSR74SYVJKBTKTMYUK36IJ3SQJP
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TW53TFJ6WWNXMUHOFACKATJTS7NIHVQE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WV5TNNJLGG536TJH6DLCIAAZZIPV2GUD
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YU4ZYX62H2NUAKKGUES4RZIM4KMTKZ7F
- https://symfony.com/blog/twig-security-release-possibility-to-load-a-template-outside-a-configured-directory-when-using-the-filesystem-loader
- https://www.debian.org/security/2022/dsa-5248
- https://www.drupal.org/sa-core-2022-016
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Debilidad (CWE)
CWE-22- Plataforma
- Composer, Drupal
- Paquete
drupal/core, twig/twig- Publicada
- 28.09.2022
- Actualizado
- 11.10.2026 13:17
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-52m2-vc4m-jj33 - CC BY 4.0
OSV / GitHub Advisory Database - DRUPAL-CORE-2022-016 - CC BY-SA 2.0; code GPL-2.0-or-later
Historial de vulnerabilidades: drupal/core
Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 146
- Primera → última
- 02.2018 09.2026
- Sin corrección
- 3
- Explotada en ataques
- 5
Distribución por gravedad
- Crítica 15
- Alta 40
- Media 60
- Baja 5
- Sin evaluar 26
Divulgaciones por año
- 2018: 4
- 2019: 14
- 2020: 12
- 2021: 11
- 2022: 55
- 2023: 6
- 2024: 23
- 2025: 8
- 2026: 13
-
Drupal core - SA-CORE-2022-016 esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.