GHSA-9m49-vhwv-422gcritical9.8
Smarty PHP code injection
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
smarty/smarty Packagist
| Affected range | Recorded fix |
|---|---|
| From 3 before 3.1.32Ecosystem versions | 3.1.32 |
Version evidence: OSV · GHSA-9m49-vhwv-422g
View original version evidence (20 explicit versions)
Original source description
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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2017-1000480
- Source reference github.com/smarty-php/smarty
- Source reference github.com/smarty-php/smarty/blob/master/change_log.txt
- Source reference lists.debian.org/debian-lts-announce/2018/01/msg00023.html
- Source reference lists.debian.org/debian-lts-announce/2018/02/msg00000.html
- Security advisory www.debian.org/security/2018/dsa-4094