CVE-2026-82531Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache
Updated under an hour ago ()
Does this affect you?
It affects smarty-php smarty. Add what you run to find out whether that includes you.
EPSS puts the chance of exploitation in the next 30 days at 0.82%, higher than 56% of scored CVEs.
Do this next
Free account, 1 product
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
- 8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-94
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- 0.82% (percentile 56)
- Assigned by
- VulnCheck
- NVD analysis
- Awaiting Analysis
- Record last updated
- Oct 6, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
smarty-php smarty smarty_php:smarty (from the name) | before 4.5.8; from 5.0.0 before 5.8.5; 4.5.8 not affected; 5.8.5 not affected | CNA record |
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9xvendor-advisory
- https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414patch
- https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858dpatch
- https://github.com/smarty-php/smarty/releases/tag/v5.8.5release-notes
- https://github.com/smarty-php/smarty/releases/tag/v4.5.8release-notes
- https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cachethird-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.