Vulnerabilities · 2021 · Smarty
CVE-2021-21408
Smarty vulnerability
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.
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/19ae410bf56007a5ef24441cdc6414619cfaf664 · Patch
- github.com/smarty-php/smarty/releases/tag/v3.1.43 · Third Party Advisory
- github.com/smarty-php/smarty/releases/tag/v4.0.3 · Third Party Advisory
- github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/05/msg00005.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-2021-21408
- cve.org/CVERecord?id=CVE-2021-21408
More vulnerabilities in Smarty products
CVE-2023-41661CVE-2023-28447CVE-2022-29221CVE-2021-29454CVE-2021-26120CVE-2021-26119CVE-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.