{"id":"CVE-2009-5054","aliases":["DEBIAN-CVE-2009-5054","EUVD-2022-2823","GHSA-6m9f-8vwq-97pm"],"status":"published","title":"Smarty Does Not Consider Umask Values When Setting Permissions","description":"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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01589,"percentile":0.75821,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-264","CWE-281"],"published":"2011-02-03T16:00:00Z","modified":"2026-10-23T17:47:31Z","fixes":[{"ecosystem":"Packagist","package":"smarty/smarty","fixed_in":["3.0.0-beta4"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"smarty3","fixed_in":["3.0~rc1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"smarty3","fixed_in":["3.0~rc1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"smarty3","fixed_in":["3.0~rc1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-beta4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0~rc1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0~rc1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0~rc1-1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-beta4"}]}],"versions":["v2.6.24","v2.6.25","v2.6.26","v2.6.27","v2.6.28","v2.6.29","v2.6.30","v2.6.31","v2.6.33"]}],"products":[{"vendor":"smarty","product":"smarty"}],"references":[{"url":"http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-5054","tags":["advisory"]},{"url":"https://web.archive.org/web/20101116174040/http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6m9f-8vwq-97pm"},{"url":"https://security-tracker.debian.org/tracker/CVE-2009-5054","tags":["advisory"]},{"url":"https://github.com/smarty-php/smarty","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2009-5054","description":"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.","status":"published","published":"2011-02-03T16:00:00Z","modified":"2024-09-17T01:35:52.992Z","updated_at":"2026-11-02T14:33:23.041383Z"}],"euvd":[{"id":"EUVD-2022-2823","description":"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.","status":"published","published":"2011-02-03T16:00:00Z","modified":"2024-09-17T01:35:52Z","updated_at":"2026-11-03T00:28:48.402396Z"}],"ghsa":[{"id":"GHSA-6m9f-8vwq-97pm","title":"Smarty Does Not Consider Umask Values When Setting Permissions","description":"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.","status":"published","published":"2022-05-02T04:00:47Z","modified":"2024-02-08T22:08:39Z","cwes":["CWE-281"],"updated_at":"2026-11-02T14:37:36.777238Z"}],"nvd":[{"id":"CVE-2009-5054","description":"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.","status":"published","published":"2011-02-03T17:00:01.837Z","modified":"2026-06-16T23:14:54.517Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:01:38.684719Z"}],"osv":[{"id":"CVE-2009-5054","description":"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.","status":"published","published":"2011-02-03T17:00:01Z","modified":"2026-04-10T03:41:06.646975Z","updated_at":"2026-11-02T15:43:57.714116Z"},{"id":"DEBIAN-CVE-2009-5054","description":"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.","status":"published","published":"2011-02-03T17:00:01.837Z","modified":"2026-10-23T17:47:31.615530178Z","updated_at":"2026-11-02T15:45:24.013654Z"},{"id":"GHSA-6m9f-8vwq-97pm","title":"Smarty Does Not Consider Umask Values When Setting Permissions","description":"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.","status":"published","published":"2022-05-02T04:00:47Z","modified":"2024-12-04T05:46:50.965677Z","cwes":["CWE-281"],"updated_at":"2026-11-02T15:46:39.965326Z"}]}}
