The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- No fix listed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA. Impact type from CWE-94.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 56
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:* | 1.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:* | 1.0a | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:* | 1.0b | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:* | 1.1.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:* | 1.2.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:* | 1.2.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:* | 1.2.2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:* | 1.3.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:* | 1.3.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:* | 1.3.2 | Vulnerable | smarty-php |
- cpe:2.3:a:smarty:smarty:1.0:*:*:*:*:*:*:* Versions 1.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.0a:*:*:*:*:*:*:* Versions 1.0a Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.0b:*:*:*:*:*:*:* Versions 1.0b Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.1.0:*:*:*:*:*:*:* Versions 1.1.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.2.0:*:*:*:*:*:*:* Versions 1.2.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.2.1:*:*:*:*:*:*:* Versions 1.2.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.2.2:*:*:*:*:*:*:* Versions 1.2.2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.3.0:*:*:*:*:*:*:* Versions 1.3.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.3.1:*:*:*:*:*:*:* Versions 1.3.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.3.2:*:*:*:*:*:*:* Versions 1.3.2 Vulnerable ·smarty-php
Show 46 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:* | 1.4.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:* | 1.4.0 b1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:* | 1.4.0 b2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:* | 1.4.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:* | 1.4.2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:* | 1.4.3 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:* | 1.4.4 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:* | 1.4.5 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:* | 1.4.6 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:* | 1.5.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:* | 1.5.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:* | 1.5.2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:* | 2.0.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:* | 2.0.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:* | 2.1.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:* | 2.1.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:* | 2.2.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:* | 2.3.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:* | 2.3.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:* | 2.4.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:* | 2.4.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:* | 2.4.2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:* | 2.5.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:* | 2.5.0 rc1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:* | 2.5.0 rc2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:* | 2.6.0 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:* | 2.6.0 rc1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:* | 2.6.0 rc2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:* | 2.6.0 rc3 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:* | 2.6.1 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:* | 2.6.2 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:* | 2.6.3 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:* | 2.6.4 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:* | 2.6.5 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:* | 2.6.6 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:* | 2.6.7 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:* | 2.6.9 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:* | 2.6.10 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:* | 2.6.11 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:* | 2.6.12 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:* | 2.6.13 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:* | 2.6.14 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:* | 2.6.15 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:* | 2.6.16 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:* | 2.6.17 | Vulnerable | smarty-php |
| cpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:* | 2.6.18 | Vulnerable | smarty-php |
- cpe:2.3:a:smarty:smarty:1.4.0:*:*:*:*:*:*:* Versions 1.4.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.0:b1:*:*:*:*:*:* Versions 1.4.0 b1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.0:b2:*:*:*:*:*:* Versions 1.4.0 b2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.1:*:*:*:*:*:*:* Versions 1.4.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.2:*:*:*:*:*:*:* Versions 1.4.2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.3:*:*:*:*:*:*:* Versions 1.4.3 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.4:*:*:*:*:*:*:* Versions 1.4.4 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.5:*:*:*:*:*:*:* Versions 1.4.5 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.4.6:*:*:*:*:*:*:* Versions 1.4.6 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.5.0:*:*:*:*:*:*:* Versions 1.5.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.5.1:*:*:*:*:*:*:* Versions 1.5.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:1.5.2:*:*:*:*:*:*:* Versions 1.5.2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.0.1:*:*:*:*:*:*:* Versions 2.0.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.1.0:*:*:*:*:*:*:* Versions 2.1.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.1.1:*:*:*:*:*:*:* Versions 2.1.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.2.0:*:*:*:*:*:*:* Versions 2.2.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.3.0:*:*:*:*:*:*:* Versions 2.3.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.3.1:*:*:*:*:*:*:* Versions 2.3.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.4.0:*:*:*:*:*:*:* Versions 2.4.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.4.2:*:*:*:*:*:*:* Versions 2.4.2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.5.0:*:*:*:*:*:*:* Versions 2.5.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.5.0:rc1:*:*:*:*:*:* Versions 2.5.0 rc1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.5.0:rc2:*:*:*:*:*:* Versions 2.5.0 rc2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.0:*:*:*:*:*:*:* Versions 2.6.0 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.0:rc1:*:*:*:*:*:* Versions 2.6.0 rc1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.0:rc2:*:*:*:*:*:* Versions 2.6.0 rc2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.0:rc3:*:*:*:*:*:* Versions 2.6.0 rc3 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.1:*:*:*:*:*:*:* Versions 2.6.1 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.2:*:*:*:*:*:*:* Versions 2.6.2 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.3:*:*:*:*:*:*:* Versions 2.6.3 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.4:*:*:*:*:*:*:* Versions 2.6.4 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.5:*:*:*:*:*:*:* Versions 2.6.5 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.6:*:*:*:*:*:*:* Versions 2.6.6 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.7:*:*:*:*:*:*:* Versions 2.6.7 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.9:*:*:*:*:*:*:* Versions 2.6.9 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.10:*:*:*:*:*:*:* Versions 2.6.10 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.11:*:*:*:*:*:*:* Versions 2.6.11 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.12:*:*:*:*:*:*:* Versions 2.6.12 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.13:*:*:*:*:*:*:* Versions 2.6.13 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.14:*:*:*:*:*:*:* Versions 2.6.14 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.15:*:*:*:*:*:*:* Versions 2.6.15 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.16:*:*:*:*:*:*:* Versions 2.6.16 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.17:*:*:*:*:*:*:* Versions 2.6.17 Vulnerable ·smarty-php
- cpe:2.3:a:smarty:smarty:2.6.18:*:*:*:*:*:*:* Versions 2.6.18 Vulnerable ·smarty-php
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2008-4810
- 2026-10-03 Alias added: GHSA-c7vg-7rfq-795p
References
Advisory 1
Other 6
- http://code.google.com/p/smarty-php/source/detail?r=2784&path=/trunk/libs/Smarty_Compiler.class.php
- http://securityvulns.ru/Udocument746.html
- https://bugs.gentoo.org/attachment.cgi?id=169804&action=view
- http://smarty-php.googlecode.com/svn/trunk/NEWS
- http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php
- [oss-security] 20081025 Regarding SA32329 (Smarty "_expand_quoted_text()" Security Bypass)
More smarty-php Smarty vulnerabilities
- TI-2021-08070 Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. CVSS 3.1CRITICAL 9.8
- TI-2009-01585 The smarty_function_math function in libs/plugins/function.math.php in Smarty 2.6.22… CVSS 2.0HIGH 10.0
- TI-2006-06846 PHP remote file inclusion vulnerability in libs/Smarty.class.php in Smarty 2.6.9 allows… CVSS 3.1CRITICAL 9.8
- TI-2022-11764 PHP Code Injection by malicious block or filename in Smarty CVSS 3.1HIGH 8.8
- TI-2017-14689 Smarty 3 before 3.1.32 is vulnerable to a PHP code injection when calling fetch() or… CVSS 3.0CRITICAL 9.8
- TI-2010-04450 Smarty before 3.0.0 beta 7 does not properly handle the <?php and ?> tags, which has… CVSS 2.0HIGH 10.0
Sources
- CVE-2008-4810 · CVE Program
- CVE-2008-4810 · NVD
- FIRST EPSS
- GHSA-c7vg-7rfq-795p · GitHub Advisory Database · CC BY 4.0
- CVE-2008-4810 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences