CriticalGHSA-9m49-vhwv-422gCVE-2017-1000480
Smarty PHP code injection
Published 14 May 2022 · Updated 24 Apr 2024
Affected package
smarty/smartyComposer
- 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.32Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-1000480
- Packagegithub.com/smarty-php/smarty
- Linkgithub.com/smarty-php/smarty/blob/master/change_log.txt
- Linklists.debian.org/debian-lts-announce/2018/01/msg00023.html
- Linklists.debian.org/debian-lts-announce/2018/02/msg00000.html
- Linkwww.debian.org/security/2018/dsa-4094
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.