Back
CVE-2008-4810
The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797 allows remote attackers to execute…
High7.5EPSS 2.2%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 2.2% · top 18% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
References (10)
- 32329 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 31862 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- smarty-expandquotedtext-code-execution(46031) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- DSA-1691 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://securityvulns.ru/Udocument746.html (opens in a new tab)x_refsource_MISCx_transferred
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://smarty-php.googlecode.com/svn/trunk/NEWS (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20081025 Regarding SA32329 (Smarty "_expand_quoted_text()" Security Bypass) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2008-4810)Record last updated .