Smarty before 3.0.0 beta 4 does not consider the umask value when setting the permissions of files, which might allow attackers to bypass intended access restrictions via standard filesystem operations.
https://github.com/advisories/GHSA-6m9f-8vwq-97pm
http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt