CVE-2026-82531: critical vulnerability in smarty-php smarty
Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache
Published
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 9.2epss 0.8%
from disclosure to weapon1 days
Published on NVDOct 6
1st PoC+1d
exploitation probability
0.8%top 44% of all CVEs
observed exploitation
nono source reports it
1 public exploit(s)
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.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected products
smarty-php · smartypublic PoCs found — 1
githubgithub.com/murrez/CVE-2026-82531★ 1⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — smarty-php smarty
In the same product, most dangerous first.
CVE-2022-29221HIGHPHP Code Injection by malicious block or filename in SmartyEPSS 4.9%CVE-2021-21408HIGHAccess to restricted PHP code by dynamic static class access in smartyEPSS 2.2%CVE-2021-29454HIGHSandbox Escape by math function in smartyEPSS 1.9%CVE-2023-28447HIGHCross site scripting vulnerability in Javascript escaping in smarty/smartyEPSS 1.0%CVE-2026-62993MEDIUMSmarty: SSRF via redirect bypass of trusted_uri using {fetch}EPSS 0.6%CVE-2026-62992MEDIUMSmarty: Symlink path traversal out of trusted directoriesEPSS 0.5%
References
https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858dhttps://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414https://github.com/smarty-php/smarty/releases/tag/v4.5.8https://github.com/smarty-php/smarty/releases/tag/v5.8.5https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9xhttps://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache