CVE-2026-82531
Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache
CVSS Score
8.1
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-94 |
| Vendor | smarty-php |
| Product | smarty |
| Published | Oct 6, 2026 |
| Last Updated | Oct 6, 2026 |
Stay Ahead of the Next One
Get instant alerts for smarty-php smarty
Be the first to know when new high vulnerabilities affecting smarty-php smarty are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
smarty-php / smarty
0 < 4.5.8 5.0.0 < 5.8.5
References
github.com: https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x github.com: https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414 github.com: https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d github.com: https://github.com/smarty-php/smarty/releases/tag/v5.8.5 github.com: https://github.com/smarty-php/smarty/releases/tag/v4.5.8 vulncheck.com: https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache
Credits
๐ MegaManSec