NetSight
high8.8

CVE-2022-29221

PHP Code Injection by malicious block or filename in Smarty

Impact

### Impact Template authors could inject php code by choosing a malicous {block} name or {include} file name. Sites that cannot fully trust template authors should update asap. ### Patches Please upgrade to the most recent version of Smarty v3 or v4. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ ### References _Are there any links users can visit to find out more?_ ### For more information If you have any questions or comments about this advisory: * Open an issue in [the Smarty repo](https://github.com/smarty-php/smarty)

Affected packages

EcosystemPackageAffectedFixed in
composersmarty/smarty< 3.1.453.1.45

Affected products

VendorProductAffected versions
SmartySmarty
before 3.1.45
from 4.0.0 before 4.1.1
DebianDebian Linux
Versions 9.0, 10.0, 11.0
FedoraprojectFedora
Versions 36, 37

Weakness classification

References