Intel

AIKIDO-2026-418711

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

CVE-2026-82531Published Oct 6, 2026
October 6, 2026

81

CVE Score

High

Remote Code Execution (RCE)

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.

How do I fix this?

Upgrade the smarty/smarty library to the patch version.

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.

Versions

3.0.0 - 4.5.7

Fixed in 4.5.8

5.0.0 - 5.8.4

Fixed in 5.8.5

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea