CVE-2008-4811: Smarty - Remote Code Execution
- Cve: CVE-2008-4811
- Name: Smarty - Remote Code Execution
- Description: The _expand_quoted_text function in libs/Smarty_Compiler.class.php in Smarty 2.6.20 r2797 and earlier allows remote attackers to execute arbitrary PHP code via vectors related to templates and a \ (backslash) before a dollar-sign character.
- Impact: Attackers can execute arbitrary PHP code on the server, leading to full system compromise.
- Remediation: Update to Smarty version later than 2.6.20 or apply security patches addressing this vulnerability.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.01644
- Epss percentile: 0.77073
- Assignee: [email protected]
- Published at: 2008-10-31T18:09:08Z
- Age in days: 6598
- Modified at: 2026-06-16T22:58:35Z
- References total: 6
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2008-4811
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-264 | — |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| smarty:smarty | = 2.6.0 rc3, = 2.6.18, = 2.6.17, = 2.6.16, = 2.6.15, = 2.6.14, = 2.6.13, = 2.6.12, = 2.6.11, = 2.6.10, = 2.6.9, = 2.6.7, = 2.6.6, = 2.6.5, = 2.6.4, = 2.6.3, = 2.6.2, = 2.6.1, = 2.6.0, = 2.6.0 rc1, = 2.6.0 rc2, = 2.5.0, = 2.5.0 rc1, = 2.5.0 rc2, = 2.4.2, = 2.4.1, = 2.4.0, = 2.3.1, = 2.3.0, = 2.2.0, = 2.1.1, = 2.1.0, = 2.0.1, = 2.0.0, = 1.4.0 b2, = 1.5.2, = 1.5.1, = 1.5.0, = 1.4.6, = 1.4.5, = 1.4.4, = 1.4.3, = 1.4.2, = 1.4.1, = 1.4.0, = 1.4.0 b1, = 1.3.2, = 1.3.1, = 1.3.0, = 1.2.2, = 1.2.1, = 1.2.0, = 1.1.0, = 1.0, = 1.0a, = 1.0b | no | nvd | /v1/products/smarty/smarty |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts