{"schemaVersion":3,"id":"CVE-2026-82531","aliases":["UBUNTU-CVE-2026-82531","DEBIAN-CVE-2026-82531"],"status":"published","duplicateOf":null,"title":null,"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.56599,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"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":0.56599}],"last30":[{"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":0.56599}]},"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 ('Code Injection')","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}],"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}],"versionsText":"All versions (No fix recorded)","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}],"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}],"versionsText":"All versions (No fix recorded)","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},{"text":"≥ 5.0.0, < 5.8.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.8 | ≥ 5.0.0, < 5.8.5","eol":null,"hubHref":"/vendor/smarty-php/smarty"}],"affectedCount":5,"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"]},{"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"]}],"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}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T09:29:48.436Z","stale":false,"partial":false}}