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
Affected Vendors & Products
Advisories
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-2995-1 | smarty3 security update |
Debian DSA |
DSA-5151-1 | smarty3 security update |
EUVD |
EUVD-2022-0423 | 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. |
Github GHSA |
GHSA-29gp-2c3m-3j6m | Sandbox Escape by math function in smarty |
Ubuntu USN |
USN-5348-1 | Smarty vulnerabilities |
Ubuntu USN |
USN-5348-2 | Smarty vulnerabilities |
Ubuntu USN |
USN-5348-3 | Smarty vulnerabilities |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 23 Apr 2025 20:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2025-04-23T19:14:05.629Z
Reserved: 2021-03-30T00:00:00.000Z
Link: CVE-2021-29454
Updated: 2024-08-03T22:02:51.996Z
Status : Modified
Published: 2022-01-10T20:15:08.000
Modified: 2024-11-21T06:01:08.007
Link: CVE-2021-29454
No data.
OpenCVE Enrichment
No data.
Debian DLA
Debian DSA
EUVD
Github GHSA
Ubuntu USN