> CVE-2022-29221 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-05-24 15:15
MODIFIED
2024-11-21 06:58
CVSS_SCORE V3
8.8
EPSS (Prob. Exploit)
4.91%
Top 7.8%
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.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

> 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.45
Smarty - Smarty
>= 4.0.0 < 4.1.1

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
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
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-634x-pc3q-cf4c HIGH

PHP Code Injection by malicious block or filename in Smarty

AFFECTED PACKAGES:
COMPOSER / smarty/smarty
>= 4.0.0, < 4.1.1
Fixed in: 4.1.1
COMPOSER / smarty/smarty
< 3.1.45
Fixed in: 3.1.45

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

PHP Code Injection by malicious block or filename in Smarty

AFFECTED PACKAGES:
Unknown / Unknown
45 versions affected
ALIASES:
GHSA-634x-pc3q-cf4c

> HISTORIQUE DES MODIFICATIONS

Première apparition
24/05/2022 15:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:33
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