{"id":"CVE-2026-62996","summary":"Smarty Security stream restriction bypass through stream: resource","details":"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.","aliases":["GHSA-rjhh-76wf-8xmw"],"modified":"2026-08-09T03:30:45.244296703Z","published":"2026-08-07T15:04:52.662Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62996.json"},"references":[{"type":"WEB","url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62996.json"},{"type":"ADVISORY","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62996"},{"type":"FIX","url":"https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e"},{"type":"FIX","url":"https://github.com/smarty-php/smarty/pull/1195"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/smarty-php/smarty","events":[{"introduced":"e161babbd49840de2ae7a5e358e59f52d66c1f0a"},{"fixed":"3c9f77a2e06ce319ae0092496af32cc8f3adc52e"},{"fixed":"94a27cbbc7820198d7adc17a2be8d457fb267753"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"5.0.0"},{"fixed":"5.8.4"}]}}],"versions":["v5.8.3","v5.8.2","v5.8.1","v5.8.0","v5.7.0","v5.6.0","v5.5.2","v5.5.1","v5.5.0","v5.4.5","v5.4.4","v5.4.3","v5.4.2","v5.4.1","v5.4.0","v5.3.1","v5.3.0","v5.2.0","v5.1.0","v5.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62996.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V4","score":"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"}]}