{"id":"CVE-2012-4437","aliases":["DEBIAN-CVE-2012-4437","EUVD-2022-3376","GHSA-9gqj-ppv2-f2hq","MGASA-2014-0468"],"status":"published","title":"Cross-site Scripting in SmartyException","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02462,"percentile":0.84552,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2012-10-01T01:00:00Z","modified":"2026-10-23T17:47:22Z","fixes":[{"ecosystem":"Packagist","package":"smarty/smarty","fixed_in":["3.1.12"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"smarty3","fixed_in":["3.1.10-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"smarty3","fixed_in":["3.1.10-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"smarty3","fixed_in":["3.1.10-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.12"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.10-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.10-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"smarty3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.10-2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"smarty/smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.12"}]}],"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"]},{"source":"osv","ecosystem":"Mageia:3","package":"php-smarty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.21-1.mga3"}]}],"bundled":2}],"products":[{"vendor":"smarty","product":"smarty"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2012/09/19/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://advisories.mageia.org/MGASA-2014-0468.html","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/50589","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2014:221","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://jvndb.jvn.jp/ja/contents/2012/JVNDB-2012-000094.html","tags":["third-party-advisory","x_refsource_JVNDB","x_transferred","web"]},{"url":"http://jvn.jp/en/jp/JVN63650108/index.html","tags":["third-party-advisory","x_refsource_JVN","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/09/20/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/55506","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://code.google.com/p/smarty-php/source/detail?r=4658","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4437","tags":["advisory"]},{"url":"https://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt","tags":["web"]},{"url":"https://code.google.com/p/smarty-php/source/detail?r=4658","tags":["web"]},{"url":"https://lists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html","tags":["web"]},{"url":"https://web.archive.org/web/20140201075419/http://www.securityfocus.com/bid/55506","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2012/09/19/1","tags":["web"]},{"url":"https://www.openwall.com/lists/oss-security/2012/09/20/3","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9gqj-ppv2-f2hq"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-4437","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"]}],"sources":{"cve":[{"id":"CVE-2012-4437","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2012-10-01T01:00:00Z","modified":"2024-08-06T20:35:09.815Z","updated_at":"2026-11-02T14:34:51.584538Z"}],"euvd":[{"id":"EUVD-2022-3376","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2012-10-01T01:00:00Z","modified":"2024-08-06T20:35:09Z","updated_at":"2026-11-03T01:56:07.912368Z"}],"ghsa":[{"id":"GHSA-9gqj-ppv2-f2hq","title":"Cross-site Scripting in SmartyException","description":"Cross-site scripting (XSS) vulnerability in the `SmartyException` class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2022-05-17T04:02:12Z","modified":"2023-08-29T21:35:13Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2012-4437","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2012-10-01T03:26:16.413Z","modified":"2026-06-16T23:45:05.917Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:02:16.115119Z"}],"osv":[{"id":"CVE-2012-4437","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2012-10-01T03:26:16Z","modified":"2026-04-16T06:22:35.912076919Z","updated_at":"2026-11-02T15:43:58.537032Z"},{"id":"DEBIAN-CVE-2012-4437","description":"Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2012-10-01T03:26:16.413Z","modified":"2026-10-23T17:47:22.982781075Z","updated_at":"2026-11-02T15:45:25.218101Z"},{"id":"GHSA-9gqj-ppv2-f2hq","title":"Cross-site Scripting in SmartyException","description":"Cross-site scripting (XSS) vulnerability in the `SmartyException` class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors that trigger a Smarty exception.","status":"published","published":"2022-05-17T04:02:12Z","modified":"2024-12-06T05:39:50.853397Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:43.875515Z"},{"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"}]}}
