{"id":"CVE-2014-8350","aliases":["DEBIAN-CVE-2014-8350","DLA-452-1","EUVD-2022-2026","GHSA-2pmx-6mm6-6v72","MGASA-2014-0468","MGASA-2014-0469","UBUNTU-CVE-2014-8350"],"status":"published","title":"Smarty arbitrary PHP code execution","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","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-08","score":0.03127,"percentile":0.87948,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2014-11-03T16:00:00Z","modified":"2026-10-23T15:47:36Z","fixes":[{"ecosystem":"Packagist","package":"smarty/smarty","fixed_in":["3.1.21"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"smarty3","fixed_in":["3.1.21-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"smarty3","fixed_in":["3.1.21-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"smarty3","fixed_in":["3.1.21-1"],"sources":["osv"]},{"ecosystem":"Debian:7","package":"smarty3","fixed_in":["3.1.10-2+deb7u1"],"sources":["osv"]},{"ecosystem":"Mageia:4","package":"php-smarty","fixed_in":["3.1.21-1.mga4"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.10-2+deb7u1"}]}],"versions":["3.1.10-2"]},{"source":"osv","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21"}]}],"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","v3.1.11","v3.1.12","v3.1.13","v3.1.14","v3.1.15","v3.1.16","v3.1.17","v3.1.18","v3.1.19","v3.1.20"]},{"source":"osv","ecosystem":"Mageia:3","package":"php-smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1.mga3"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:4","package":"php-smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1.mga4"}]}]}],"products":[{"vendor":"smarty","product":"smarty"}],"references":[{"url":"http://www.securityfocus.com/bid/70708","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://seclists.org/oss-sec/2014/q4/421","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","evidence","web"]},{"url":"https://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt?r=4902","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://advisories.mageia.org/MGASA-2014-0468.html","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"http://seclists.org/oss-sec/2014/q4/420","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","evidence","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2014:221","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/97725","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765920","tags":["x_refsource_CONFIRM","x_transferred","Exploit","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-8350","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2pmx-6mm6-6v72"},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-8350","tags":["advisory"]},{"url":"https://github.com/smarty-php/smarty","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2014-0468.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=14465","tags":["report"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2014-November/142696.html","tags":["web"]},{"url":"https://advisories.mageia.org/MGASA-2014-0469.html","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2014-8350","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-8350","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2014-8350","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2014-11-03T16:00:00Z","modified":"2024-08-06T13:18:48.203Z","updated_at":"2026-11-02T14:33:43.206348Z"}],"euvd":[{"id":"EUVD-2022-2026","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2014-11-03T16:00:00Z","modified":"2024-08-06T13:18:48Z","updated_at":"2026-11-03T01:56:51.537817Z"}],"ghsa":[{"id":"GHSA-2pmx-6mm6-6v72","title":"Smarty arbitrary PHP code execution","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2022-05-17T01:13:38Z","modified":"2024-04-24T22:53:35Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:46.667202Z"}],"nvd":[{"id":"CVE-2014-8350","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2014-11-03T16:55:08.01Z","modified":"2026-06-17T00:16:35.827Z","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-94"],"updated_at":"2026-11-02T14:02:56.921017Z"}],"osv":[{"id":"CVE-2014-8350","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2014-11-03T16:55:08Z","modified":"2026-04-16T06:25:34.201316259Z","updated_at":"2026-11-02T15:44:00.097545Z"},{"id":"DEBIAN-CVE-2014-8350","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2014-11-03T16:55:08.01Z","modified":"2026-10-23T15:47:36.804542093Z","updated_at":"2026-11-02T15:45:26.442161Z"},{"id":"DLA-452-1","title":"smarty3 - security update","status":"published","published":"2016-05-03T00:00:00Z","modified":"2026-03-09T02:09:20.996397Z","updated_at":"2026-11-02T15:46:13.207219Z"},{"id":"GHSA-2pmx-6mm6-6v72","title":"Smarty arbitrary PHP code execution","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"published","published":"2022-05-17T01:13:38Z","modified":"2024-12-06T05:48:06.054279Z","cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"MGASA-2014-0468","title":"Updated php-smarty packages fix security vulnerabilities","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in\nSmarty (aka smarty-php) before 3.1.12 allows remote attackers to inject\narbitrary web script or HTML via unspecified vectors that trigger a Smarty\nexception (CVE-2012-4437).\n\nSmarty before 3.1.21 allows remote attackers to bypass the secure mode\nrestrictions and execute arbitrary PHP code as demonstrated by\n\"{literal}\u003c{/literal}script language=php\u003e\" in a template (CVE-2014-8350).\n","status":"published","published":"2014-11-21T12:44:16Z","modified":"2026-04-16T06:26:12.581652529Z","updated_at":"2026-11-02T15:49:39.488462Z"},{"id":"MGASA-2014-0469","title":"Updated php-smarty packages fix security vulnerability","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode\nrestrictions and execute arbitrary PHP code as demonstrated by\n\"{literal}\u003c{/literal}script language=php\u003e\" in a template (CVE-2014-8350).\n","status":"published","published":"2014-11-21T12:44:16Z","modified":"2026-04-16T06:26:15.518131309Z","updated_at":"2026-11-02T15:49:39.488462Z"},{"id":"UBUNTU-CVE-2014-8350","description":"Smarty before 3.1.21 allows remote attackers to bypass the secure mode restrictions and execute arbitrary PHP code as demonstrated by \"{literal}\u003c{/literal}script language=php\u003e\" in a template.","status":"withdrawn","published":"2014-11-03T16:55:00Z","modified":"2025-07-16T08:11:12.04443Z","updated_at":"2026-11-02T15:54:09.378953Z"}]}}
