{"schemaVersion":4,"id":"CVE-2026-82531","aliases":["UBUNTU-CVE-2026-82531","DEBIAN-CVE-2026-82531","MGASA-2026-0585"],"status":"published","duplicateOf":null,"title":"Smarty before 4.5.8 and 5.x before 5.8.5 PHP Code Injection via extends: Inheritance Cache","description":"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.","dates":{"published":"2026-10-06T12:18:31.801Z","modified":"2026-10-06T12:47:10.950Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.2,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.2,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":9.2,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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","exploitability":5.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.2,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00821,"percentile":0.58633,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-05T00:00:00.000Z","baselineScore":0.00821},"history":[{"date":"2026-10-07T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00821,"percentile":0.58633}],"last30":[{"date":"2026-11-05T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01172,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00821,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00821,"percentile":0.58633}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"debian","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/smarty4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 4.5.5-1+deb13u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.5.5-1+deb13u1","endInclusive":false}},{"text":"< 4.5.8-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.5.8-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 4.5.5-1+deb13u1 | < 4.5.8-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty3","name":"smarty3","label":"smarty3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"smarty4","name":"smarty4","label":"smarty4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/smarty4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mageia","product":"php-smarty","name":"php-smarty","label":"php-smarty","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/php-smarty","purlType":"rpm","versions":[{"text":"< 5.8.5-1.mga10","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.8.5-1.mga10","endInclusive":false}}],"versionsText":"< 5.8.5-1.mga10","eol":null,"hubHref":null},{"vendor":"smarty-php","product":"smarty","name":"smarty","label":"smarty","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.5.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.5.8","endInclusive":false}},{"text":"≥ 5.0.0, < 5.8.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.0.0","startInclusive":true,"end":"5.8.5","endInclusive":false}}],"versionsText":"< 4.5.8 | ≥ 5.0.0, < 5.8.5","eol":null,"hubHref":"/vendor/smarty-php/smarty"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x","label":"github.com/smarty-php/smarty/security/advisories/GHSA-3w63-v7pm-cq9x","hostname":"github.com","tags":["Vendor Advisory","REPORT","Advisory"]},{"url":"https://github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414","label":"github.com/smarty-php/smarty/commit/c0fdd4824aca4f67e814b50703cfee1dfde41414","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d","label":"github.com/smarty-php/smarty/commit/1cba51cb813563eb61d963c83d28cd59f26b858d","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.5","label":"github.com/smarty-php/smarty/releases/tag/v5.8.5","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.5.8","label":"github.com/smarty-php/smarty/releases/tag/v4.5.8","hostname":"github.com","tags":["Release Notes"]},{"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","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-82531","label":"ubuntu.com/security/CVE-2026-82531","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-82531","label":"www.cve.org/CVERecord?id=CVE-2026-82531","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-82531","label":"security-tracker.debian.org/tracker/CVE-2026-82531","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2026-0585.html","label":"advisories.mageia.org/MGASA-2026-0585.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=36622","label":"bugs.mageia.org/show_bug.cgi?id=36622","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.5","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.4","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.3","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.2","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.1","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/smarty-php/smarty/releases#release-v5.8.0","label":"github.com/smarty-php/smarty/releases","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-06T12:18:31.801Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-06T12:47:10.950Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 05-12-2026)","nextStep":"Check applicability: affected before 4.5.8, 5.8.5 (CNA); fix release not confirmed","rank":[0,0,0,0,1,92],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00821,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-10-06T12:47:10.950Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-06T12:44:36.819Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00821,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T14:05:26.172Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T14:05:26.762Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T14:01:06.338Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T14:05:24.254Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T14:03:52.423Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T14:42:48.040Z","stale":false,"partial":false}}