CriticalGHSA-9m49-vhwv-422gCVE-2017-1000480

Smarty PHP code injection

Published 14 May 2022 · Updated 24 Apr 2024

Affected package

Affected
>=3 <3.1.32
Fixed in
3.1.32
Update to the fixed version for your release line, for example:composer require smarty/smarty:^3.1.32

Details

Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or display() functions on custom resources that does not sanitize template name.

Is GHSA-9m49-vhwv-422g in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected smarty/smarty, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.