CVE-2008-4811: Smarty

High severity, CVSS 7.5. EPSS: 1.6% chance of exploitation in the next 30 days.

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.

Affected products

  • Smarty Smarty: version 1.0 only; version 1.0a only; version 1.0b only; version 1.1.0 only; version 1.2.0 only; version 1.2.1 only; …

Published 2008-10-31. Last modified 2026-06-16.