CVE-2026-82531: smarty · Code Injection
Affects smartySource CVE Database V5
Not known to be exploited · CVSS 9.2 Critical : upgrade to 5.8.5 or 4.5.8 as a priority.
Data as of 20 Nov 2026, 17:35 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.8.5, 4.5.8
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade smarty to 5.8.5 or 4.5.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| smarty-phpsmarty | Affected
| Fixed in
|
| smarty-phpsmarty | Affected
| Fixed in
|
GitHubsmartypkg:github/smartyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Smarty to version 4.5.8 or later, or 5.8.5 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed by the affectedVersions data indicating fixed versions.
Description
Smarty versions before 4.5.8 and 5.x before 5.8.5 contain a code injection vulnerability due to improper handling of the nocache_hash during multi-component template inheritance. This flaw allows attackers to inject arbitrary PHP code via crafted assigned data, leading to remote code execution when the PHP cache file is included.
References
- github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x (opens in a new tab)
- github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414 (opens in a new tab)
- github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d (opens in a new tab)
- github.com/smarty-php/smarty/releases/tag/v5.8.5 (opens in a new tab)
- github.com/smarty-php/smarty/releases/tag/v4.5.8 (opens in a new tab)
- vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache (opens in a new tab)