# CVE-2008-4810

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2008-10-31 · Modified: 2024-08-07
- Record: https://cvemate.com/vulnerability/CVE-2008-4810 · JSON: https://cvemate.com/vulnerability/CVE-2008-4810/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v2.0, NVD) AV:N/AC:L/Au:N/C:P/I:P/A:P
- EPSS: 2.187%, percentile 83.046%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- smarty smarty: 1.0 \| 1.0a \| 1.0b \| 1.1.0 \| 1.2.0 \| 1.2.1 \| 1.2.2 \| 1.3.0 \| 1.3.1 \| 1.3.2 \| 1.4.0 \| 1.4.0:b1 \| 1.4.0:b2 \| 1.4.1 \| 1.4.2 \| 1.4.3 \| 1.4.4 \| 1.4.5 \| 1.4.6 \| 1.5.0 \| 1.5.1 \| 1.5.2 \| 2.0.0 \| 2.0.1 \| 2.1.0 \| 2.1.1 \| 2.2.0 \| 2.3.0 \| 2.3.1 \| 2.4.0 \| 2.4.1 \| 2.4.2 \| 2.5.0 \| 2.5.0:rc1 \| 2.5.0:rc2 \| 2.6.0 \| 2.6.0:rc1 \| 2.6.0:rc2 \| 2.6.0:rc3 \| 2.6.1 \| 2.6.2 \| 2.6.3 \| 2.6.4 \| 2.6.5 \| 2.6.6 \| 2.6.7 \| 2.6.9 \| 2.6.10 \| 2.6.11 \| 2.6.12 \| 2.6.13 \| 2.6.14 \| 2.6.15 \| 2.6.16 \| 2.6.17 \| 2.6.18

## References

- <http://secunia.com/advisories/32329>
- <http://www.securityfocus.com/bid/31862>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/46031>
- <http://www.debian.org/security/2008/dsa-1691>
- <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>
- <http://www.openwall.com/lists/oss-security/2008/10/25/2>

---

Data as of 2026-12-05T14:22:42.180Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
