RCE in Smarty-Php Smarty
CVE-2026-82531
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x (vendor-advisory)
- github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414 (patch)
- github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d (patch)
- github.com/smarty-php/smarty/releases/tag/v5.8.5 (release-notes)
- github.com/smarty-php/smarty/releases/tag/v4.5.8 (release-notes)
- www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-82531?
- CVE-2026-82531 is a high-severity vulnerability in Smarty-Php Smarty, classified under Code Injection. CVSS score: 8.1/10. Published 2026-10-06.
- How severe is CVE-2026-82531?
- High severity. CVSS v3 base score is 8.1 out of 10.