CVE-2012-4277

CVE-2012-4277 is a medium-severity vulnerability in Smarty with a CVSS 2.0 base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.

Key facts

Description

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.

Frequently asked questions

What is CVE-2012-4277?
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.
How severe is CVE-2012-4277?
CVE-2012-4277 has a CVSS 2.0 base score of 4.3, rated medium severity.
Is CVE-2012-4277 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (66th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-4277?
CVE-2012-4277 primarily affects Smarty. In total, 87 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2012-4277?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2012-4277 published?
CVE-2012-4277 was published on 2012-08-13 and last updated on 2026-06-16.

References

Affected products (87)

More vulnerabilities in Smarty

All CVEs affecting Smarty →

Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities

Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →