CVE-2021-29454Smarty
Alta 8.8
Seguir: esta CVE · Smarty · Smarty Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 53
- CVSS 3.1
- 8.8
- EPSS
- 1.9% probabilidad de explotación en 30 días · percentil 80
- Requiere autenticación
- Sí
- Publicada
- 10 ene 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-74
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Qué pasa
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Smarty.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | smarty/smarty |
< 3.1.42 |
3.1.42 |
composer require "smarty/smarty:^3.1.42" |
| Packagist | smarty/smarty |
≥ 4.0.0 < 4.0.2 |
4.0.2 |
composer require "smarty/smarty:^4.0.2" |
Según OSV / GitHub Advisories (GHSA-29gp-2c3m-3j6m). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| smarty | smarty | < 3.1.42 |
| smarty | smarty | ≥ 4.0.0 < 4.0.2 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- packagist.org Product Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory
- www.smarty.net Vendor Advisory