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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | moodle | 1.6.3-2+etch1 | DSA-1691-1 |
Advisories 1
- DSA-1691-1 moodle - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 32329 third-party-advisory
- smarty-expandquotedtext-code-execution1(46406) vdb-entry
- 31862 vdb-entry
- DSA-1691 vendor-advisory
- http://securityvulns.ru/Udocument746.html
- [oss-security] 20081025 Regarding SA32329 (Smarty "_expand_quoted_text()" Security Bypass) mailing-list