PT-2022-3224 · Smarty+2 · Smarty+2
Altm4N
+1
·
Published
2022-05-17
·
Updated
2023-12-12
·
CVE-2022-29221
CVSS v2.0
9.0
High
| Vector | AV:N/AC:L/Au:S/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Smarty versions prior to 3.1.45
Smarty versions 4.0.0 through 4.1.0
Description
The issue is related to incorrect code generation management in the PHP Smarty template engine, allowing a remote attacker to execute arbitrary PHP code. Template authors could inject PHP code by choosing a malicious
{block} name or {include} file name. This affects sites that cannot fully trust template authors.Recommendations
For versions prior to 3.1.45, upgrade to version 3.1.45 to receive a patch for this issue.
For versions 4.0.0 through 4.1.0, upgrade to version 4.1.1 to receive a patch for this issue.
As a temporary workaround, consider restricting the ability of template authors to choose
{block} names or {include} file names until a patch is applied.Exploit
Fix
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Smarty
Ubuntu