CVEvulnerability
CVE-2008-4810
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2008-10-31
- Last modified
- 2026-06-16
- Assigner
- [email protected]
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-94
Description
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 configurations
• smarty smarty 1.0
• smarty smarty 1.0a
• smarty smarty 1.0b
• smarty smarty 1.1.0
• smarty smarty 1.2.0
• smarty smarty 1.2.1
• smarty smarty 1.2.2
• smarty smarty 1.3.0
• smarty smarty 1.3.1
• smarty smarty 1.3.2
• smarty smarty 1.4.0
• smarty smarty 1.4.1
• smarty smarty 1.4.2
• smarty smarty 1.4.3
• smarty smarty 1.4.4
• smarty smarty 1.4.5
• smarty smarty 1.4.6
• smarty smarty 1.5.0
• smarty smarty 1.5.1
• smarty smarty 1.5.2
• smarty smarty 2.0.0
• smarty smarty 2.0.1
• smarty smarty 2.1.0
• smarty smarty 2.1.1
• smarty smarty 2.2.0
• smarty smarty 2.3.0
• smarty smarty 2.3.1
• smarty smarty 2.4.0
• smarty smarty 2.4.1
• smarty smarty 2.4.2
• smarty smarty 2.5.0
• smarty smarty 2.6.0
• smarty smarty 2.6.1
• smarty smarty 2.6.2
• smarty smarty 2.6.3
• smarty smarty 2.6.4
• smarty smarty 2.6.5
• smarty smarty 2.6.6
• smarty smarty 2.6.7
• smarty smarty 2.6.9
• smarty smarty 2.6.10
• smarty smarty 2.6.11
• smarty smarty 2.6.12
• smarty smarty 2.6.13
• smarty smarty 2.6.14
• smarty smarty 2.6.15
• smarty smarty 2.6.16
• smarty smarty 2.6.17
• smarty smarty 2.6.18
Related
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php code.google.com
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php code.google.com
- http://secunia.com/advisories/32329 Vendor Advisory
- http://securityvulns.ru/Udocument746.html securityvulns.ru
- http://smarty-php.googlecode.com/svn/trunk/NEWS smarty-php.googlecode.com
- http://www.debian.org/security/2008/dsa-1691 www.debian.org
- http://www.openwall.com/lists/oss-security/2008/10/25/2 www.openwall.com
- http://www.securityfocus.com/bid/31862 www.securityfocus.com
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view bugs.gentoo.org
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46031 exchange.xforce.ibmcloud.com
- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php code.google.com
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php code.google.com
- http://secunia.com/advisories/32329 Vendor Advisory
- http://securityvulns.ru/Udocument746.html securityvulns.ru
- http://smarty-php.googlecode.com/svn/trunk/NEWS smarty-php.googlecode.com
- http://www.debian.org/security/2008/dsa-1691 www.debian.org
- http://www.openwall.com/lists/oss-security/2008/10/25/2 www.openwall.com
- http://www.securityfocus.com/bid/31862 www.securityfocus.com
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view bugs.gentoo.org
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46031 exchange.xforce.ibmcloud.com