CVE-2008-4810 json
The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 before r2797 allows remote attackers to execute arbitra…
published 2008-10-31 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-4789
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-4810 updated
php-Smarty: PHP code execution via unescaped $ sign or double-quoted string
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.19% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
debian.org
/security/2008/dsa-1691
vendor-advisory
-
secunia.com
/advisories/32329
third-party-advisory, vendor-advisory
-
securityfocus.com
/bid/31862
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/46031
vdb-entry
- code.google.com /p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php
- securityvulns.ru /Udocument746.html
- bugs.gentoo.org /attachment.cgi?id=169804&action=view
- smarty-php.googlecode.com /svn/trunk/NEWS
- code.google.com /p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php
-
openwall.com
/lists/oss-security/2008/10/25/2
mailing-list
Sources
- CVE List CVE-2008-4810
- NVD CVE-2008-4810
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.