CVE Catalog

CVE-2026-82531

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Summary

Smarty before 4.5.8 and 5.x before 5.8.5 contains a code injection vulnerability where nocache_hash is not restored during extends:/multi-component template inheritance, leaving it null. Attackers can supply data with a forged SmartyNocache marker that is copied into the PHP cache file, enabling arbitrary PHP execution.

Risk Assessment

The risk includes remote code execution on the server, potentially leading to full application and data compromise.

Recommendation

Update Smarty to version 4.5.8 or 5.8.5 (or later) which includes the fix. Avoid assigning data from untrusted sources to templates.

Other vulnerabilities in Smarty

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS