CVE-2026-82531

High

Description

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.

SeverityHigh
CVSS8.1
Exploit probability—
ProductSmarty
PublishedOct 6, 2026
First seenOct 6, 2026

How to fix

Affected products

ProductAffected versionsFixed in
smarty-php smartyv < 4.5.8, 5.0.0 ≤ v < 5.8.54.5.8, 5.8.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.