Vulnerabilities · 2008 · Smarty
CVE-2008-4810
Smarty vulnerability
The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797 allows remote attackers to execute arbitrary PHP code via vectors related to templates and (1) a dollar-sign character, aka "php executed in templates;" and (2) a double quoted literal string, aka a "function injection security hole." NOTE: each vector affects slightly different SVN revisions.
Affected products
Smarty. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Smarty runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/32329 · Vendor Advisory
- code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.p
- code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.p
- securityvulns.ru/Udocument746.html
- smarty-php.googlecode.com/svn/trunk/NEWS
- www.debian.org/security/2008/dsa-1691
- www.openwall.com/lists/oss-security/2008/10/25/2
- www.securityfocus.com/bid/31862
- nvd.nist.gov/vuln/detail/CVE-2008-4810
- cve.org/CVERecord?id=CVE-2008-4810
More vulnerabilities in Smarty products
CVE-2023-41661CVE-2023-28447CVE-2022-29221CVE-2021-29454CVE-2021-26120CVE-2021-26119CVE-2021-21408CVE-2018-25047All 31
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.