Intel

AIKIDO-2026-418711

smarty/smarty is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2026-82531 Published Yesterday

81

High Risk

This Affects:

PHPsmarty/smarty
3.0.0 - 4.5.7
Fixed in 4.5.8
5.0.0 - 5.8.4
Fixed in 5.8.5
Are you affected? Scan for Free

TL;DR

removeNoCacheHash() rebuilds the nocache-marker split from the top-level nocache_hash, which {extends} inheritance never restores. Assigned output can therefore be copied verbatim into the generated PHP cache file and run when that cache is included. The fix ignores an empty nocache hash and treats forged markers as ordinary output.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and templates are rendered through {extends} inheritance with untrusted assigned data.

Background info

smarty/smarty is vulnerable to Remote Code Execution (RCE) in versions 3.0.0 - 4.5.7 and 5.0.0 - 5.8.4.

How to fix this

Upgrade the smarty/smarty library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform