CVE-2026-82531: Smarty-PHP Smarty

High severity, CVSS 8.1. EPSS: 0.8% chance of exploitation in the next 30 days.

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.

Affected products

  • Smarty-PHP Smarty: before 4.5.8 (fixed in 4.5.8); from 5.0.0, before 5.8.5 (fixed in 5.8.5)

Published 2026-10-06. Last modified 2026-10-06.