← Back to search

CVE-2026-82531

8.1 HIGHpublic exploit available

Published 2026-10-06 · Updated 2026-10-06

AI risk analysis

Summary
Smarty template engine contains a code injection vulnerability where forged nocache_hash markers can be copied verbatim into PHP cache files, enabling remote code execution through arbitrary PHP code execution on include. This affects versions before 4.5.8 and 5.x before 5.8.5.
Exploitability
Exploitation requires crafting a specific assigned data structure with a forged SmartyNocache marker that gets embedded into generated cache files, making it moderately difficult but possible for attackers with template rendering access.
Blast radius
If exploited, this vulnerability could lead to full remote code execution on the web server, potentially allowing attackers to execute arbitrary commands, access sensitive data, or compromise the entire application environment.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to Smarty 4.5.8 or 5.8.5 to remediate this code injection vulnerability.
rcetemplate-injectionwebphp

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-94

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.