CVE-2026-82531
8.1 HIGHpublic exploit availablePublished 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.
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
- https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d
- https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414
- https://github.com/smarty-php/smarty/releases/tag/v4.5.8
- https://github.com/smarty-php/smarty/releases/tag/v5.8.5
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
All references
- https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d
- https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414
- https://github.com/smarty-php/smarty/releases/tag/v4.5.8
- https://github.com/smarty-php/smarty/releases/tag/v5.8.5
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
- https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-106446PoC
- HIGHCVE-2026-107248
- CRITICALCVE-2026-108598PoC
- HIGHCVE-2026-16623
- HIGHCVE-2026-71232PoC
- CRITICALCVE-2026-75799
- HIGHCVE-2026-79310PoC
- CRITICALCVE-2026-88393PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.