
CVE catalog
CVE-2021-21408
smarty3: CVE-2021-21408
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.08% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | smarty3 | sid | 3.1.48-2 | fixed |
| Debian | smarty3 | forky | 3.1.48-2 | fixed |
| Debian | smarty3 | trixie | 3.1.48-2 | fixed |
| Debian | smarty3 | bookworm | 3.1.47-2+deb12u1 | fixed |
| Debian | smarty3 | bookworm-security | 3.1.47-2+deb12u1 | fixed |
| Debian | smarty4 | sid | 4.5.5-1 | fixed |
| Debian | smarty4 | forky | 4.5.5-1 | fixed |
| Debian | smarty4 | trixie | 4.5.5-1 | fixed |
| Debian | smarty4 | bookworm | 4.3.0-1+deb12u2 | fixed |
| Debian | smarty4 | bookworm-security | 4.3.0-1+deb12u2 | fixed |
| Ubuntu | smarty3 | pro | 3.1.21-1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.21-1ubuntu1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.21-1ubuntu1+esm1 | fixed |
| Ubuntu | smarty3 | pro | 3.1.33+20180830.1.3a78a21f+selfpack1-1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | smarty3 | pro | 3.1.33+20180830.1.3a78a21f+selfpack1-1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1 | vulnerable |
| Ubuntu | smarty3 | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | smarty3 | 18.04 | 3.1.31+20161214.1.c7d42e4+selfpack1-2 | vulnerable |
| Ubuntu | smarty3 | 18.04 | 3.1.31+20161214.1.c7d42e4+selfpack1-3 | vulnerable |
| Ubuntu | smarty3 | 18.04 | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | fixed |
| Ubuntu | smarty3 | 22.04 | 3.1.39-2 | vulnerable |
| Ubuntu | smarty3 | 22.04 | 3.1.39-2ubuntu1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | smarty3 | source | sid | 3.1.45-1 | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | forky | 3.1.45-1 | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | trixie | 3.1.45-1 | not yet assigned | Not reported | Not reported |
| Debian | smarty3 | source | bookworm | 3.1.45-1 | not yet assigned | Not reported | Not reported |
| Debian | smarty4 | source | sid | 4.1.1-1 | not yet assigned | Not reported | [1010375] |
| Debian | smarty4 | source | forky | 4.1.1-1 | not yet assigned | Not reported | [1010375] |
| Debian | smarty4 | source | trixie | 4.1.1-1 | not yet assigned | Not reported | [1010375] |
| Debian | smarty4 | source | bookworm | 4.1.1-1 | not yet assigned | Not reported | [1010375] |
| Ubuntu | smarty3 | deb | pro | 3.1.21-1ubuntu1+esm1 | Not reported | USN-5348-2 | Not reported |
| Ubuntu | smarty3 | deb | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 | Not reported | USN-5348-3 | Not reported |
| Ubuntu | smarty3 | deb | pro | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-21408 | Not reported |
| Ubuntu | smarty3 | deb | 18.04 | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1 | Not reported | UBUNTU-CVE-2021-21408 | Not reported |
| Ubuntu | smarty3 | deb | 22.04 | 3.1.39-2ubuntu1 | Not reported | UBUNTU-CVE-2021-21408 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [smarty3]Fixed
Details (4)
3.1.47-2+deb12u1· all · bookwormFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookwormFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm; dsa · smarty3 · debian · 12
- [smarty4]Fixed
Details (4)
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm; dsa · smarty4 · debian · 12
[Debian 13 (Trixie)]
- [smarty3]Fixed
Details (2)
3.1.48-2· all · trixieFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · 13
3.1.48-2· all · trixieFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · 13
- [smarty4]Fixed
Details (2)
4.5.5-1· all · trixieFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · 13
4.5.5-1· all · trixieFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-21408]
- [https://osv.dev/vulnerability/DLA-2995-1]
- [https://osv.dev/vulnerability/DSA-5151-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-21408]
- [https://osv.dev/vulnerability/USN-5348-2]
- [https://osv.dev/vulnerability/USN-5348-3]
- [https://security-tracker.debian.org/tracker/CVE-2021-21408]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]