PT-2021-6791 · Smarty+2 · Smarty+2
Published
2021-02-17
·
Updated
2022-10-14
·
CVE-2021-26120
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Smarty versions prior to 3.1.39
Description
The issue is related to incorrect code generation handling when processing invalid function names in the Smarty template engine for PHP. This can allow a remote attacker to execute arbitrary code. The estimated number of potentially affected devices is not specified.
Recommendations
For versions prior to 3.1.39, update to version 3.1.39 or higher as soon as possible to prevent code injection via malicious function names.
As a temporary workaround, consider restricting the ability of template authors to choose arbitrary function names until the update 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