Skip to content

PHP Code Injection by malicious block or filename

High
wisskid published GHSA-634x-pc3q-cf4c May 17, 2022

Package

composer smarty/smarty (Composer)

Affected versions

< 3.1.45
< 4.1.1

Patched versions

3.1.45
4.1.1

Description

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:

Severity

High

CVE ID

CVE-2022-29221

Weaknesses

No CWEs

Credits