Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Smarty | Smarty | < 3.1.45 |
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 36 |
Related Weaknesses (CWE)
References
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702ccPatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702ccPatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.45Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.1.1Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00044.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2022-29221?
CVE-2022-29221 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 choosi...
How severe is CVE-2022-29221?
CVE-2022-29221 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-29221?
Check the references section above for vendor advisories and patch information. Affected products include: Smarty Smarty, Debian Debian Linux, Fedoraproject Fedora.