{"schemaVersion":3,"id":"CVE-2026-62996","aliases":["UBUNTU-CVE-2026-62996"],"status":"published","duplicateOf":null,"title":null,"description":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. From 5.0.0 until 5.8.4, Smarty's stream: resource-name handling does not adequately restrict which PHP stream wrappers and filter chains can be referenced from a template, allowing a php://filter-wrapped resource name to be used to read the contents of arbitrary local files accessible to the PHP process. An attacker able to author or influence a template's resource reference could exploit this to disclose sensitive file contents outside the intended template/config scope. This issue is fixed in version 5.8.4.","dates":{"published":"2026-08-07T15:04:52.662Z","modified":"2026-08-07T17:08:09.710Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/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}]},"epss":{"probability":0.00508,"percentile":0.4221,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.08900000000000002,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00419},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00508,"percentile":0.4221}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00508,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00508,"percentile":0.4221}]},"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"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":"≥ 5.0.0, < 5.8.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.8.4","eol":null,"hubHref":"/vendor/smarty-php/smarty"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","label":"github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/smarty-php/smarty/pull/1195","label":"github.com/smarty-php/smarty/pull/1195","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","label":"github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.4","label":"github.com/smarty-php/smarty/releases/tag/v5.8.4","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-62996","label":"ubuntu.com/security/CVE-2026-62996","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-62996","label":"www.cve.org/CVERecord?id=CVE-2026-62996","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-07T15:04:52.662Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-07T17:08:09.710Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:47:28.692Z","stale":false,"partial":false}}