CVE-2026-82531
Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d
- github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414
- github.com/smarty-php/smarty/releases/tag/v4.5.8
- github.com/smarty-php/smarty/releases/tag/v5.8.5
- github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
- www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-v
- nvd.nist.gov/vuln/detail/CVE-2026-82531
- cve.org/CVERecord?id=CVE-2026-82531
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.