Unscored severity · published Aug 13, 2012
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…
–
CVSS
1.2%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 69% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SM
Smarty · Smarty
through 3.1.7; 1.0; 1.0a; 1.0b; 1.1.0; 1.2.0; +34 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-4277
CVE.org
https://www.cve.org/CVERecord?id=CVE-2012-4277
Exploit
http://code.google.com/p/smarty-php/issues/detail?id=98&can=1
Patch
http://code.google.com/p/smarty-php/source/detail?r=4612
Vendor Advisory
http://secunia.com/advisories/49164
smarty-php.googlecode.com
http://smarty-php.googlecode.com/svn/trunk/distribution/change_log.txt
www.securitytracker.com
http://www.securitytracker.com/id?1027061
More from Smarty
9.8
CVE-2021-26120
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring
9.8
CVE-2011-1028
The $smarty.template variable in Smarty3 allows attackers to possibly execute arbitrary PHP code via the sysplugins/smarty_internal_compile_private_special_variable.php file
9.8
CVE-2017-1000480
Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or display() functions on custom resources that does not sanitize template name
9.8
CVE-2006-7105
PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows remote attackers to execute arbitrary PHP code via a URL in the filename parameter
8.8
CVE-2022-29221
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic
