---
cve: "CVE-2021-21408"
severity: "HIGH"
cvss: 8.8
epss: "2.2%"
vendor: "smarty-php"
kev: false
exploited: false
published: "2022-01-10 20:15:07"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T23:09:01+02:00"
---

# CVE-2021-21408

> 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.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.

## 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)

- 273f7e00fec034f6d61112552e9caf08d19565b7 (Commit)
- f707dadecbc145bac40f77f47595f32ec18eed01 (Commit)

## Referenzen

- <https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m>
- <https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664>
- <https://github.com/smarty-php/smarty/releases/tag/v3.1.43>
- <https://github.com/smarty-php/smarty/releases/tag/v4.0.3>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00005.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-2021-21408) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
