MGASA-2026-0585: Updated php-smarty package fixes a security vulnerability
Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocachehash is never restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply assigned data containing a forged SmartyNocache marker that is copied verbatim into the regenerated PHP cache file, executing arbitrary PHP on include for remote code execution.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
mageia/php-smartyto a version that resolves this vulnerability.Fixed in 5.8.5-1.mga10 - Upgrade
Upgrade
php-smartyto a version that resolves this vulnerability.Fixed in 4.5.8 - Upgrade
Upgrade
php-smartyto a version that resolves this vulnerability.Fixed in 5.8.5