{"id":"CVE-2017-1000480","published":"2018-01-03T18:00:00Z","modified":"2024-08-05T22:00:41Z","title":"Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or display() functions on custom…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03124,"percentile":0.8816,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.debian.org/security/2018/dsa-4094","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/smarty-php/smarty/blob/master/change_log.txt","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/01/msg00023.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00000.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.63}]},"affected":[{"ecosystem":"Packagist","package":"smarty/smarty","vulnerableRanges":[">=3, <3.1.32"],"patched":["3.1.32"],"from":["GHSA-9m49-vhwv-422g"],"provenance":"source"}],"summary":{"text":"Smarty 3 before 3.1.32 contains a flaw in its template handling, where the fetch() and display() functions on custom resources fail to sanitise the template name. The conditions an attacker needs, such as network access, authentication, user interaction or specific configuration, are not stated in the available record, so the exact prerequisites cannot be confirmed; what is known is that unsanitised template names passed to these functions can lead to PHP code injection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:52Z"},"euvd":{"id":"EUVD-2022-3409","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2011-1028","published":"2019-11-20","fixed":"3.0.7","kev":false},{"cve":"CVE-2012-4437","published":"2012-10-01","fixed":"3.1.12","kev":false},{"cve":"CVE-2014-8350","published":"2014-11-03","fixed":"3.1.21","kev":false},{"cve":"CVE-2017-1000480","published":"2018-01-03","fixed":"3.1.32","kev":false},{"cve":"CVE-2018-13982","published":"2018-09-18","fixed":"3.1.33","kev":false,"link":{"from":"CVE-2017-1000480","to":"CVE-2018-13982","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"3.1.32","toFixed":"3.1.33","daysApart":258}]}},{"cve":"CVE-2018-16831","published":"2018-09-11","fixed":"3.1.33","kev":false,"link":{"from":"CVE-2017-1000480","to":"CVE-2018-16831","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"3.1.32","toFixed":"3.1.33","daysApart":251}]}},{"cve":"CVE-2021-26119","published":"2021-02-22","fixed":"3.1.39","kev":false}],"package":"Packagist:smarty/smarty"}}