CVE-2008-4810
publishedphp-Smarty: PHP code execution via unescaped $ sign or double-quoted string
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | etch | moodle | Advisory build | 1.6.3-2+etch1 | DSA-1691-1 |
| Debian | etch | smarty | Advisory build | 2.6.14-1etch2 | DSA-1919-1 |
| Debian | lenny | smarty | Advisory build | 2.6.20-1.2 | DSA-1919-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
10- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php
- 32329 http://secunia.com/advisories/32329
- http://securityvulns.ru/Udocument746.html
- http://smarty-php.googlecode.com/svn/trunk/NEWS
- DSA-1691 http://www.debian.org/security/2008/dsa-1691
- [oss-security] 20081025 Regarding SA32329 (Smarty "_expand_quoted_text()" Security Bypass) http://www.openwall.com/lists/oss-security/2008/10/25/2
- 31862 http://www.securityfocus.com/bid/31862
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view
- smarty-expandquotedtext-code-execution(46031) https://exchange.xforce.ibmcloud.com/vulnerabilities/46031
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1892c90f5bfa9d5f90e40bd42346b2628d4f1743efc5da3fc584d1551a0d9f1f
- Ingested
- 23 Sep 2026, 07:38:28 UTC
- Source record
- Official CVE record