CVE-2021-29454 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| smarty smarty | < 3.1.42 >= 4.0.0, < 4.0.2 |
CPE
Remediation
| |
| debian debian linux | 9.0 10.0 11.0 |
CPE
Remediation
| |
| fedoraproject fedora | 36 37 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Dec 8, 2022 | Modified Analysis | [email protected] |
| Nov 14, 2022 | CVE Modified | [email protected] |
| Nov 7, 2022 | Modified Analysis | [email protected] |
| Oct 24, 2022 | CVE Modified | [email protected] |
| Oct 14, 2022 | Modified Analysis | [email protected] |
| Sep 25, 2022 | CVE Modified | [email protected] |
| Jun 2, 2022 | CVE Modified | [email protected] |
| May 12, 2022 | Modified Analysis | [email protected] |
| May 5, 2022 | CVE Modified | [email protected] |
| Jan 19, 2022 | Initial Analysis | [email protected] |