RCE in Smarty
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 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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS: 0.022 (81.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000
Affected products
- Smarty — versions 1.0, 1.0a, 1.0b
Weakness classification (CWE)
References
- secunia.com/advisories/32329 (Vendor Advisory, third-party-advisory)
- www.securityfocus.com/bid/31862 (vdb-entry)
- exchange.xforce.ibmcloud.com/vulnerabilities/46031 (vdb-entry)
- www.debian.org/security/2008/dsa-1691 (vendor-advisory)
- code.google.com/p/smarty-php/source/detail
- securityvulns.ru/Udocument746.html
- bugs.gentoo.org/attachment.cgi
- smarty-php.googlecode.com/svn/trunk/NEWS
- code.google.com/p/smarty-php/source/detail
- www.openwall.com/lists/oss-security/2008/10/25/2 (mailing-list)