{"id":"CVE-2026-62996","published":"2026-08-07T15:04:52Z","modified":"2026-08-07T17:08:09Z","title":"Smarty Security stream restriction bypass through stream: resource","vendor":"smarty-php","product":"smarty","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00508,"percentile":0.36582,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/smarty-php/smarty/pull/1195","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.4","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":7.32},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"smarty-php","affectedVersions":[{"vendor":"smarty-php","product":"smarty","versions":[">= 5.0.0, < 5.8.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-07T17:06:32.844811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"smarty/smarty","vulnerableRanges":[">=5.0.0, <5.8.4"],"patched":["5.8.4"],"from":["GHSA-rjhh-76wf-8xmw"],"provenance":"source"}],"summary":{"text":"A flaw in the stream: resource-name handling of Smarty, the PHP template engine, from 5.0.0 through 5.8.4 fails to adequately restrict which PHP stream wrappers and filter chains a template can reference. An attacker who can author or influence a template's resource reference, which requires high privileges, can use a php://filter-wrapped resource name to read arbitrary local files accessible to the PHP process, with no network-level prerequisites or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:09Z"},"euvd":{"id":"EUVD-2026-54499","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-35226","published":"2024-05-28","fixed":"5.1.1","kev":false},{"cve":"CVE-2026-62992","published":"2026-08-07","fixed":"5.8.2","kev":false,"link":{"from":"CVE-2026-62992","to":"CVE-2026-62996","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:smarty/smarty","fromFixed":"5.8.2","toFixed":"5.8.4","daysApart":0}]}},{"cve":"CVE-2026-62993","published":"2026-08-31","fixed":"5.8.2","kev":false},{"cve":"CVE-2026-62996","published":"2026-08-07","fixed":"5.8.4","kev":false}],"package":"Packagist:smarty/smarty"}}