---
title: "CVE-2008-4810\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2008-4810?format=md
keywords: index, follow
---

# CVE-2008-4810

Publication date 31 October 2008

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2008-4810?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| gallery2 | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Not affected |
| 8.04 LTS hardy | Ignored end of life |
| 6.06 LTS dapper | Ignored end of life |
| moodle | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Fixed 1.8.2-1.2ubuntu2.1 |
| 8.04 LTS hardy | Fixed 1.8.2-1ubuntu4.2 |
| 6.06 LTS dapper | Ignored end of life |
| smarty | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 9.10 karmic | Not affected |
| 9.04 jaunty | Not affected |
| 8.10 intrepid | Ignored end of life, was needed |
| 8.04 LTS hardy | Ignored end of life |
| 7.10 gutsy | Ignored end of life, was needed |
| 6.06 LTS dapper | Ignored end of life |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2008-4810?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

moodle and gallery2 have embedded smarty

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| smarty | * Upstream:   <http://code.google.com/p/smarty-php/source/detail?r=2797&path=/trunk/libs/Smarty_Compiler.class.php> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4810)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2008-4810)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2008-4810)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2008-4810)

### Related Ubuntu Security Notices (USN)

+ [USN-791-1](https://usn.ubuntu.com/USN-791-1)
+ Moodle vulnerabilities
+ 24 June 2009

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2008-4810>
