CVE-2012-4437
MEDIUM 4.3CVSS 2.0Cross-site Scripting in SmartyException
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.
- Published
- 1 Oct 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-9gqj-ppv2-f2hq
- Sources
- NVDJSONOSV GHSA-9gqj-ppv2-f2hqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:* |
= 1.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:* |
= 1.0a | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:* |
= 1.0b | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:* |
= 1.1.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:* |
= 1.2.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:* |
= 1.2.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:* |
= 1.2.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:* |
= 1.3.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:* |
= 1.3.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:* |
= 1.3.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:* |
= 1.4.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:* |
= 1.4.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:* |
= 1.4.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:* |
= 1.4.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:* |
= 1.4.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:* |
= 1.4.3 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:* |
= 1.4.4 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:* |
= 1.4.5 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:* |
= 1.4.6 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:* |
= 1.5.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:* |
= 1.5.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:* |
= 1.5.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:* |
= 2.1.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:* |
= 2.2.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:* |
= 2.3.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:* |
= 2.3.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:* |
= 2.4.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:* |
= 2.4.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:* |
= 2.4.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:* |
= 2.5.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:* |
= 2.5.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:* |
= 2.5.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:* |
= 2.6.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:* |
= 2.6.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:* |
= 2.6.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:* |
= 2.6.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:* |
= 2.6.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:* |
= 2.6.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:* |
= 2.6.3 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:* |
= 2.6.4 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:* |
= 2.6.5 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:* |
= 2.6.6 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:* |
= 2.6.7 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:* |
= 2.6.9 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:* |
= 2.6.10 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:* |
= 2.6.11 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:* |
= 2.6.12 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:* |
= 2.6.13 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:* |
= 2.6.14 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:* |
= 2.6.15 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:* |
= 2.6.16 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:* |
= 2.6.17 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:* |
= 2.6.18 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.20:*:*:*:*:*:*:* |
= 2.6.20 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.22:*:*:*:*:*:*:* |
= 2.6.22 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.24:*:*:*:*:*:*:* |
= 2.6.24 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.25:*:*:*:*:*:*:* |
= 2.6.25 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:2.6.26:*:*:*:*:*:*:* |
= 2.6.26 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:*:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:beta4:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:beta5:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:beta6:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:beta7:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:beta8:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:rc1:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:rc2:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:rc3:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.0:rc4:*:*:*:*:*:* |
= 3.0.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.1:*:*:*:*:*:*:* |
= 3.0.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.2:*:*:*:*:*:*:* |
= 3.0.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.3:*:*:*:*:*:*:* |
= 3.0.3 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.4:*:*:*:*:*:*:* |
= 3.0.4 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.5:*:*:*:*:*:*:* |
= 3.0.5 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.6:*:*:*:*:*:*:* |
= 3.0.6 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.0.7:*:*:*:*:*:*:* |
= 3.0.7 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1:rc1:*:*:*:*:*:* |
= 3.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.0:*:*:*:*:*:*:* |
= 3.1.0 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.1:*:*:*:*:*:*:* |
= 3.1.1 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.2:*:*:*:*:*:*:* |
= 3.1.2 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.3:*:*:*:*:*:*:* |
= 3.1.3 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.4:*:*:*:*:*:*:* |
= 3.1.4 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.5:*:*:*:*:*:*:* |
= 3.1.5 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.6:*:*:*:*:*:*:* |
= 3.1.6 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.7:*:*:*:*:*:*:* |
= 3.1.7 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.8:*:*:*:*:*:*:* |
= 3.1.8 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.9:*:*:*:*:*:*:* |
= 3.1.9 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.10:*:*:*:*:*:*:* |
= 3.1.10 | |
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:3.1.11:*:*:*:*:*:*:* |
= 3.1.11 | |
| OSV | Packagist | smarty/smarty | < 3.1.12 | 3.1.12 |
References
- http://advisories.mageia.org/MGASA-2014-0468.html
- http://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt
- http://code.google.com/p/smarty-php/source/detail?r=4658 · Patch
- http://jvn.jp/en/jp/JVN63650108/index.html
- http://jvndb.jvn.jp/ja/contents/2012/JVNDB-2012-000094.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html
- http://secunia.com/advisories/50589 · Vendor Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:221
- http://www.openwall.com/lists/oss-security/2012/09/19/1
- http://www.openwall.com/lists/oss-security/2012/09/20/3
- http://www.securityfocus.com/bid/55506
- https://nvd.nist.gov/vuln/detail/CVE-2012-4437 · ADVISORY
- https://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt · WEB
- https://code.google.com/p/smarty-php/source/detail?r=4658 · WEB
- https://github.com/smarty-php/smarty · PACKAGE
- https://lists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html · WEB
- https://web.archive.org/web/20140201075419/http://www.securityfocus.com/bid/55506 · WEB
- https://www.openwall.com/lists/oss-security/2012/09/19/1 · WEB
- https://www.openwall.com/lists/oss-security/2012/09/20/3 · WEB
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 1 Oct 2012)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 May 2022)