{"schema":"threatline.record/2","record":{"id":"CVE-2026-82531","aliases":["GHSA-3w63-v7pm-cq9x"],"summary":"Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache","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.","categories":["Runtimes & languages"],"product":"smarty","vendor":"smarty-php","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-82531","source_modified_at":"2026-10-06T12:47:10.950Z","fetched_at":"2026-10-23T18:52:38.922436Z","product":"smarty","vendor":"smarty-php","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"4.5.8"},{"version":"5.0.0","status":"affected","versionType":"semver","lessThan":"5.8.5"},{"version":"4.5.8","status":"unaffected","versionType":"semver"},{"version":"5.8.5","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-82531","source_modified_at":"2026-10-06T12:47:10.950Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"smarty","ecosystem":null},"version":"4.5.8","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-82531","source_modified_at":"2026-10-06T12:47:10.950Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"smarty","ecosystem":null},"version":"5.8.5","basis":"first unaffected version stated in the CVE record"}],"cvss":9.2,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.00821,"percentile":0.56881,"score_date":"2026-10-23"},"published_at":"2026-10-06T12:18:31.801Z","modified_at":"2026-10-06T12:47:10.950Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-82531","fetched_at":"2026-10-23T18:52:38.922436Z","source_modified_at":"2026-10-06T12:47:10.950Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-82531","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x","tags":["exploit"]},{"source":"CVE List","url":"https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414","tags":["patch"]},{"source":"CVE List","url":"https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d","tags":["patch"]},{"source":"CVE List","url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.5","tags":["release-notes"]},{"source":"CVE List","url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.8","tags":["release-notes"]},{"source":"CVE List","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","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total","assessed_at":"2026-10-06T12:44:36.819504Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"vendor and product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-06T12:47:10.950Z","content_hash":"5b937a4fae4fe8112c3e0cf78d97b76490cd15f5f7682584d36285a160ec47e4"}}
