CVE-2012-4277

Exp

Cross-site scripting (XSS) vulnerability in the smarty_function_html_options_optoutput function in distribution/libs/plugins/function.html_options.php in Smarty before 3.1.8 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.

Published: 2012-08-13 Last update: 2026-04-29 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2012-4277 is rated Exploit Available (50.5/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.33%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2012-4277

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2012-4277

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-03-30 0.52% 0.33% -0.19%
2 2025-03-29 0.33% 0.52% +0.19%
3 2025-03-17 0.33%

Full EPSS history (8 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2012-4277

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2012-4277

OS Trackers for CVE-2012-4277

vendor priority summary link
debian not yet assigned CVE-2012-4277 not yet assigned priority: Debian including 1 source packages (smarty3), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2012-4277
ubuntu medium CVE-2012-4277 medium priority: Ubuntu including 1 source packages (smarty3), 16 status rows across 16 suites (hardy, lucid, natty, oneiric, precise, quantal, raring, saucy, trusty, upstream, utopic, vivid, wily, xenial, yakkety, zesty): not-affected 9, DNE 3, ignored 3, released 1. https://ubuntu.com/security/CVE-2012-4277

Affected software / configurations for CVE-2012-4277

Vendor Product Version Raw CPE
smarty smarty <= 3.1.7 cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*
smarty smarty 1.0 cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:*
smarty smarty 1.0a cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:*
smarty smarty 1.0b cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:*
smarty smarty 1.1.0 cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:*
smarty smarty 1.2.0 cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:*
smarty smarty 1.2.1 cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:*
smarty smarty 1.2.2 cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:*
smarty smarty 1.3.0 cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:*
smarty smarty 1.3.1 cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:*
smarty smarty 1.3.2 cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:*
smarty smarty 1.4.0 cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:*
smarty smarty 1.4.0 cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:*
smarty smarty 1.4.0 cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:*
smarty smarty 1.4.1 cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:*
smarty smarty 1.4.2 cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:*
smarty smarty 1.4.3 cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:*
smarty smarty 1.4.4 cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:*
smarty smarty 1.4.5 cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:*
smarty smarty 1.4.6 cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:*
smarty smarty 1.5.0 cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:*
smarty smarty 1.5.1 cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:*
smarty smarty 1.5.2 cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:*
smarty smarty 2.0.0 cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:*
smarty smarty 2.0.1 cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:*
smarty smarty 2.1.0 cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:*
smarty smarty 2.1.1 cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:*
smarty smarty 2.2.0 cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:*
smarty smarty 2.3.0 cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:*
smarty smarty 2.3.1 cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:*
smarty smarty 2.4.0 cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:*
smarty smarty 2.4.1 cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:*
smarty smarty 2.4.2 cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:*
smarty smarty 2.5.0 cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:*
smarty smarty 2.5.0 cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:*
smarty smarty 2.5.0 cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:*
smarty smarty 2.6.0 cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:*
smarty smarty 2.6.0 cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:*
smarty smarty 2.6.0 cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:*
smarty smarty 2.6.0 cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:*
smarty smarty 2.6.1 cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:*
smarty smarty 2.6.2 cpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:*
smarty smarty 2.6.3 cpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:*
smarty smarty 2.6.4 cpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:*
smarty smarty 2.6.5 cpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:*
smarty smarty 2.6.6 cpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:*
smarty smarty 2.6.7 cpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:*
smarty smarty 2.6.9 cpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:*
smarty smarty 2.6.10 cpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:*
smarty smarty 2.6.11 cpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:*
smarty smarty 2.6.12 cpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:*
smarty smarty 2.6.13 cpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:*
smarty smarty 2.6.14 cpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:*
smarty smarty 2.6.15 cpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:*
smarty smarty 2.6.16 cpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:*
smarty smarty 2.6.17 cpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:*
smarty smarty 2.6.18 cpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:*
smarty smarty 2.6.20 cpe:2.3:a:smarty:smarty:2.6.20:*:*:*:*:*:*:*
smarty smarty 2.6.22 cpe:2.3:a:smarty:smarty:2.6.22:*:*:*:*:*:*:*
smarty smarty 2.6.24 cpe:2.3:a:smarty:smarty:2.6.24:*:*:*:*:*:*:*
smarty smarty 2.6.25 cpe:2.3:a:smarty:smarty:2.6.25:*:*:*:*:*:*:*
smarty smarty 2.6.26 cpe:2.3:a:smarty:smarty:2.6.26:*:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:*:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:beta4:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:beta5:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:beta6:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:beta7:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:beta8:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:rc1:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:rc2:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:rc3:*:*:*:*:*:*
smarty smarty 3.0.0 cpe:2.3:a:smarty:smarty:3.0.0:rc4:*:*:*:*:*:*
smarty smarty 3.0.1 cpe:2.3:a:smarty:smarty:3.0.1:*:*:*:*:*:*:*
smarty smarty 3.0.2 cpe:2.3:a:smarty:smarty:3.0.2:*:*:*:*:*:*:*
smarty smarty 3.0.3 cpe:2.3:a:smarty:smarty:3.0.3:*:*:*:*:*:*:*
smarty smarty 3.0.4 cpe:2.3:a:smarty:smarty:3.0.4:*:*:*:*:*:*:*
smarty smarty 3.0.5 cpe:2.3:a:smarty:smarty:3.0.5:*:*:*:*:*:*:*
smarty smarty 3.0.6 cpe:2.3:a:smarty:smarty:3.0.6:*:*:*:*:*:*:*
smarty smarty 3.0.7 cpe:2.3:a:smarty:smarty:3.0.7:*:*:*:*:*:*:*
smarty smarty 3.1 cpe:2.3:a:smarty:smarty:3.1:rc1:*:*:*:*:*:*

References for CVE-2012-4277

cvelogic Threat Intelligence