CVE-2008-4810
CVE-2008-4810 is a high-severity vulnerability in Smarty with a CVSS 2.0 base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 2.0 base score 7.5)
- EPSS exploit prediction: 2% (80th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-94
- Affected product: Smarty
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2008-4810?
- CVE-2008-4810 has a CVSS 2.0 base score of 7.5, rated high severity.
- Is CVE-2008-4810 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (80th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2008-4810?
- CVE-2008-4810 primarily affects Smarty. In total, 56 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2008-4810?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2008-4810 published?
- CVE-2008-4810 was published on 2008-10-31 and last updated on 2026-06-16.
References
- 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
- http://secunia.com/advisories/32329
- http://securityvulns.ru/Udocument746.html
- http://smarty-php.googlecode.com/svn/trunk/NEWS
- http://www.debian.org/security/2008/dsa-1691
- http://www.openwall.com/lists/oss-security/2008/10/25/2
- http://www.securityfocus.com/bid/31862
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46031
Affected products (56)
- cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:*
- cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:*
More vulnerabilities in Smarty
- CVE-2010-4727 — Critical (CVSS 10.0): Smarty before 3.0.0 beta 7 does not properly handle the <?php and ?> tags, which has unspecified impact and remote…
- CVE-2010-4726 — Critical (CVSS 10.0): Unspecified vulnerability in the math plugin in Smarty before 3.0.0 RC1 has unknown impact and remote attack vectors.…
- CVE-2010-4725 — Critical (CVSS 10.0): Smarty before 3.0.0 RC3 does not properly handle an on value of the asp_tags option in the php.ini file, which has…
- CVE-2010-4724 — Critical (CVSS 10.0): Multiple unspecified vulnerabilities in the parser implementation in Smarty before 3.0.0 RC3 have unknown impact and…
- CVE-2010-4722 — Critical (CVSS 10.0): Unspecified vulnerability in the fetch plugin in Smarty before 3.0.2 has unknown impact and remote attack vectors.
- CVE-2009-5052 — Critical (CVSS 10.0): Multiple unspecified vulnerabilities in Smarty before 3.0.0 beta 6 have unknown impact and attack vectors.
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.