CVE-2024-35226: Smarty-PHP Smarty
High severity, CVSS 7.3. EPSS: 0.5% chance of exploitation in the next 30 days.
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust template authors should update asap. All users are advised to update. There is no patch for users on the v3 branch. There are no known workarounds for this vulnerability.
Affected products
- Smarty-PHP Smarty: from 5.0.0, before 5.1.1 (fixed in 5.1.1); from 3.0.0, before 4.5.3 (fixed in 4.5.3)
Published 2024-05-28. Last modified 2026-06-17.