CVE-2012-4437 Cross-site Scripting in SmartyException
Remote attackers can inject arbitrary web script or HTML via unspecified vectors triggering exceptions in the Smarty PHP templating library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2012-4437?
CVE-2012-4437 is a medium-severity cross-site scripting vulnerability in n/a, published on 1 Oct 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2012-4437?
2 open source packages ship an affected version, including smarty/smarty. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
smarty/smarty Packagist | All versions | 3.1.12 |
smarty/smarty Packagist | All versions | 3.1.12 |
Products include Smarty Smarty.
How do I fix CVE-2012-4437?
Upgrade smarty/smarty to 3.1.12 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2012-4437 being exploited?
There is no known exploitation of CVE-2012-4437 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2012-4437, GHSA-9gqj-ppv2-f2hq.