Live threats

All CVEs / Smarty

CVE-2012-4437Smarty

Medium 4.3 No auth needed

Priority
41
CVSS 2.0
4.3
EPSS
2.5%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Oct 1, 2012
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Smarty.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty < 3.1.12 3.1.12 composer require "smarty/smarty:^3.1.12"

Per OSV / GitHub Advisories (GHSA-9gqj-ppv2-f2hq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartysmarty1.0
smartysmarty1.0a
smartysmarty1.0b
smartysmarty1.1.0
smartysmarty1.2.0
smartysmarty1.2.1
smartysmarty1.2.2
smartysmarty1.3.0
smartysmarty1.3.1
smartysmarty1.3.2
smartysmarty1.4.0
smartysmarty1.4.0
smartysmarty1.4.0
smartysmarty1.4.1
smartysmarty1.4.2
smartysmarty1.4.3
smartysmarty1.4.4
smartysmarty1.4.5
smartysmarty1.4.6
smartysmarty1.5.0
smartysmarty1.5.1
smartysmarty1.5.2
smartysmarty2.0.0
smartysmarty2.0.1
smartysmarty2.1.0
smartysmarty2.1.1
smartysmarty2.2.0
smartysmarty2.3.0
smartysmarty2.3.1
smartysmarty2.4.0
smartysmarty2.4.1
smartysmarty2.4.2
smartysmarty2.5.0
smartysmarty2.5.0
smartysmarty2.5.0
smartysmarty2.6.0
smartysmarty2.6.0
smartysmarty2.6.0
smartysmarty2.6.0
smartysmarty2.6.1
smartysmarty2.6.2
smartysmarty2.6.3
smartysmarty2.6.4
smartysmarty2.6.5
smartysmarty2.6.6
smartysmarty2.6.7
smartysmarty2.6.9
smartysmarty2.6.10
smartysmarty2.6.11
smartysmarty2.6.12
smartysmarty2.6.13
smartysmarty2.6.14
smartysmarty2.6.15
smartysmarty2.6.16
smartysmarty2.6.17
smartysmarty2.6.18
smartysmarty2.6.20
smartysmarty2.6.22
smartysmarty2.6.24
smartysmarty2.6.25

and 31 more in the JSON

Official sources

References

Links published by the sources. Open them with care.