Description
The $smarty.template variable in Smarty3 allows attackers to possibly execute arbitrary PHP code via the sysplugins/smarty_internal_compile_private_special_variable.php file.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| smarty3 | smarty3 | 3 | — |
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 14 | smarty3 | 3.0.8-1 | — |
| Debian 13 | smarty3 | 3.0.8-1 | — |
| Debian 12 | smarty3 | 3.0.8-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | smarty/smarty | < 3.0.7 | 3.0.7 | GHSA-6frx-2r5w-c524 |