CVE-2026-82531criticalCWE-94

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 · smarty
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.