| Name | CVE-2017-1000480 | 
| 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. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-1249-1, DSA-4094-1 | 
| Debian Bugs | 886460 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| smarty3 (PTS) | bullseye | 3.1.39-2+deb11u1 | fixed | 
|  | bullseye (security) | 3.1.39-2+deb11u2 | fixed | 
|  | bookworm, bookworm (security) | 3.1.47-2+deb12u1 | fixed | 
|  | forky, sid, trixie | 3.1.48-2 | fixed | 
The information below is based on the following data on fixed versions.
Notes
https://github.com/smarty-php/smarty/commit/614ad1f8b9b00086efc123e49b7bb8efbfa81b61