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

VectorAV: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

Weakness Enumeration

Related Identifiers

BDU:2022-03926
CVE-2022-29221
DLA-3033-1
DSA-5151-1
GHSA-634X-PC3Q-CF4C
MGASA-2022-0226
USN-6012-1
USN-6550-1

Affected Products

Linuxmint
Smarty
Ubuntu