CVE-2026-82531
High 8.1 P4 · Monitor (17/100)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 …
Confirmed facts from the sources
- CVSS
- 8.1 (High) · CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by disclosure@vulncheck.com - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 1.17 % · percentile 67.3 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- Fix available
- Monitored technologies
- No monitored technology
Description (source)
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.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| composer: smarty/smarty | < 4.5.8, >= 5.0.0, < 5.8.5 | 4.5.8 | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
Fixed versions: smarty/smarty 4.5.8
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (17/100)
- Estimated exploitation probability 1.17 % (EPSS, percentile 67.3 %) – an estimate, not confirmation (+5)
- Technical severity: CVSS 8.1 (HIGH) – on its own not a reason for top priority (+12)
- Fix available – plan the update (+0)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-82531 · nvd
- Reference https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d · disclosure@vulncheck.com
- Reference https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414 · disclosure@vulncheck.com
- Reference https://github.com/smarty-php/smarty/releases/tag/v4.5.8 · disclosure@vulncheck.com
- Reference https://github.com/smarty-php/smarty/releases/tag/v5.8.5 · disclosure@vulncheck.com
- Reference https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x · disclosure@vulncheck.com
- Reference https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-inj… · disclosure@vulncheck.com