CVE-2026-82531
Description
Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where the top-level nocache_hash 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.
How to fix
- smarty-php smarty4.5.8, 5.8.5 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| smarty-php smarty | v < 4.5.8, 5.0.0 ≤ v < 5.8.5 | 4.5.8, 5.8.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.