
CVE catalog
CVE-2022-29221
smarty3: CVE-2022-29221
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.91% · 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.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.
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 | postfixadmin | pro | 3.3.7-1 | vulnerable |
| Ubuntu | postfixadmin | pro | 3.3.10-2 | vulnerable |
| Ubuntu | postfixadmin | pro | 3.3.10-2ubuntu0.1~esm1 | fixed |
| Ubuntu | smarty3 | 22.04 | 3.1.39-2 | vulnerable |
| Ubuntu | smarty3 | 22.04 | 3.1.39-2ubuntu1 | vulnerable |
| Ubuntu | smarty3 | 22.04 | 3.1.39-2ubuntu1.22.04.1 | 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 | [1011758] |
| Debian | smarty3 | source | forky | 3.1.45-1 | not yet assigned | Not reported | [1011758] |
| Debian | smarty3 | source | trixie | 3.1.45-1 | not yet assigned | Not reported | [1011758] |
| Debian | smarty3 | source | bookworm | 3.1.45-1 | not yet assigned | Not reported | [1011758] |
| Debian | smarty4 | source | sid | 4.1.1-1 | not yet assigned | Not reported | [1011757] |
| Debian | smarty4 | source | forky | 4.1.1-1 | not yet assigned | Not reported | [1011757] |
| Debian | smarty4 | source | trixie | 4.1.1-1 | not yet assigned | Not reported | [1011757] |
| Debian | smarty4 | source | bookworm | 4.1.1-1 | not yet assigned | Not reported | [1011757] |
| Ubuntu | postfixadmin | deb | pro | 3.3.10-2ubuntu0.1~esm1 | Not reported | USN-6550-1 | Not reported |
| Ubuntu | smarty3 | deb | 22.04 | 3.1.39-2ubuntu1.22.04.1 | Not reported | USN-6012-1 | 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
3.1.47-2+deb12u1· all · bookwormFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.45-1dsa · smarty3 · debian · bookworm
- [smarty4]Fixed
Details (4)
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.1.1-1dsa · smarty4 · debian · bookworm
Observed: