---
cve: "CVE-2022-29221"
severity: "HIGH"
cvss: 8.8
epss: "4.9%"
vendor: "smarty-php"
kev: false
exploited: false
published: "2022-05-24 15:15:07"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T11:48:48+02:00"
---

# CVE-2022-29221

> 8.8 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

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

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- a2713ab89e6d773bc4819f11857af7f6b2e353a9 (Commit)
- 71036be8be02bf93735c47b0b745f722efbc729f (Commit)

## Referenzen

- <https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c>
- <https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd>
- <https://github.com/smarty-php/smarty/releases/tag/v3.1.45>
- <https://github.com/smarty-php/smarty/releases/tag/v4.1.1>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00044.html>
- <https://www.debian.org/security/2022/dsa-5151>
- <https://security.gentoo.org/glsa/202209-09>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-29221) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
