Vulnerabilities · 2022 · Smarty
CVE-2022-29221
Smarty vulnerability
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.
Affected products
Smarty, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Smarty runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd · Patch
- github.com/smarty-php/smarty/releases/tag/v3.1.45 · Third Party Advisory
- github.com/smarty-php/smarty/releases/tag/v4.1.1 · Third Party Advisory
- github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/05/msg00044.html · Third Party Advisory
- security.gentoo.org/glsa/202209-09 · Third Party Advisory
- www.debian.org/security/2022/dsa-5151 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B
- nvd.nist.gov/vuln/detail/CVE-2022-29221
- cve.org/CVERecord?id=CVE-2022-29221
More vulnerabilities in Smarty products
CVE-2023-41661CVE-2023-28447CVE-2021-29454CVE-2021-26120CVE-2021-26119CVE-2021-21408CVE-2018-25047CVE-2018-16831All 31
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.