Vulnerability Description
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Smarty | Smarty | < 3.1.42 |
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 36 |
Related Weaknesses (CWE)
References
- https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7PatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.42Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.2Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6mThird 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://packagist.org/packages/smarty/smartyProductThird Party Advisory
- https://security.gentoo.org/glsa/202209-09Third Party Advisory
- https://www.debian.org/security/2022/dsa-5151Third Party Advisory
- https://www.smarty.net/docs/en/language.function.math.tplVendor Advisory
- https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7PatchThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v3.1.42Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/releases/tag/v4.0.2Release NotesThird Party Advisory
- https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6mThird Party Advisory
FAQ
What is CVE-2021-29454?
CVE-2021-29454 is a vulnerability with a CVSS score of 8.1 (HIGH). Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by...
How severe is CVE-2021-29454?
CVE-2021-29454 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-29454?
Check the references section above for vendor advisories and patch information. Affected products include: Smarty Smarty, Debian Debian Linux, Fedoraproject Fedora.