{"id":"UBUNTU-CVE-2017-1000480","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.","modified":"2026-05-20T16:03:15.465928481Z","published":"2018-01-03T18:29:00Z","upstream":["CVE-2017-1000480"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-1000480"},{"type":"REPORT","url":"https://github.com/smarty-php/smarty/commit/614ad1f8b9b00086efc123e49b7bb8efbfa81b61"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-1000480"}],"affected":[{"package":{"name":"smarty3","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.21-1","3.1.21-1ubuntu1","3.1.21-1ubuntu1+esm1","3.1.21-1ubuntu1+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.21-1ubuntu1+esm2","binary_name":"smarty3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1000480.json"}},{"package":{"name":"smarty3","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/smarty3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.31+20161214.1.c7d42e4+selfpack1-3"}]}],"versions":["3.1.31+20161214.1.c7d42e4+selfpack1-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.1.31+20161214.1.c7d42e4+selfpack1-3","binary_name":"smarty3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1000480.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}