> CVE-2021-29454 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-01-10 20:15
MODIFIED
2024-11-21 06:01
CVSS_SCORE V3
8.1
EPSS (Prob. Exploit)
1.86%
Top 20.6%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

Debian - Debian Linux
Version: 9.0
Debian - Debian Linux
Version: 10.0
Debian - Debian Linux
Version: 11.0
Fedoraproject - Fedora
Version: 36
Fedoraproject - Fedora
Version: 37
Smarty - Smarty
< 3.1.42
Smarty - Smarty
>= 4.0.0 < 4.0.2

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-29gp-2c3m-3j6m HIGH

Sandbox Escape by math function in smarty

AFFECTED PACKAGES:
COMPOSER / smarty/smarty
>= 4.0.0, < 4.0.2
Fixed in: 4.0.2
COMPOSER / smarty/smarty
< 3.1.42
Fixed in: 3.1.42

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

AFFECTED PACKAGES:
Unknown / Unknown
38 versions affected
ALIASES:
GHSA-29gp-2c3m-3j6m

> HISTORIQUE DES MODIFICATIONS

Première apparition
10/01/2022 20:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:30
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME