Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Smarty | Smarty | < 3.1.43 |
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 36 |
Related Weaknesses (CWE)
References
- https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaPatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.43Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.3Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.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/19ae410bf56007a5ef24441cdc6414619cfaPatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.43Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.3Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6mThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/05/msg00005.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
FAQ
What is CVE-2021-21408?
CVE-2021-21408 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.43 and 4.0.3, template authors could run restricted static php...
How severe is CVE-2021-21408?
CVE-2021-21408 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-2021-21408?
Check the references section above for vendor advisories and patch information. Affected products include: Smarty Smarty, Debian Debian Linux, Fedoraproject Fedora.