{"id":"CVE-2026-82531","aliases":[],"url":"https://o3.security/vulnerability/CVE-2026-82531","summary":"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,…","details":"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.","published":"2026-10-06T13:16:50.180","modified":"2026-10-06T13:16:50.180","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[],"fix":{"url":"https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d","label":"smarty-php/smarty@1cba51c"},"references":[{"type":"WEB","url":"https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.8"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.5"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/smarty-before-4.5.8-and-5-x-before-5.8.5-php-code-injection-via-extends-inheritance-cache"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x"}],"provenance":{"sources":["OSV.dev","NVD","FIRST.org (EPSS)"],"lastVerified":"2026-10-06T13:16:50.180"}}