{"id":"CVE-2026-62996","state":"PUBLISHED","title":"Smarty Security stream restriction bypass through stream: resource","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.","publishedAt":"2026-08-07T15:04:52.662Z","updatedAt":"2026-08-07T17:08:09.710Z","severity":{"score":6.9,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["smarty-php smarty"],"affected":[{"vendor":"smarty-php","product":"smarty","versions":[{"version":">= 5.0.0, < 5.8.4","status":"affected"}]}],"references":["https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","https://github.com/smarty-php/smarty/pull/1195","https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","https://github.com/smarty-php/smarty/releases/tag/v5.8.4"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62996.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62996","state":"PUBLISHED","datePublished":"2026-08-07T15:04:52.662Z","dateUpdated":"2026-08-07T17:08:09.710Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-14T23:10:57.032Z"},"containers":{"cna":{"title":"Smarty Security stream restriction bypass through stream: resource","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"smarty-php","product":"smarty","versions":[{"version":">= 5.0.0, < 5.8.4","status":"affected"}]}],"references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","name":"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","name":"https://github.com/smarty-php/smarty/pull/1195","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","name":"https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e","tags":["x_refsource_MISC"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v5.8.4","name":"https://github.com/smarty-php/smarty/releases/tag/v5.8.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"HIGH","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-07T15:04:52.662Z"},"source":{"advisory":"GHSA-rjhh-76wf-8xmw","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-07T17:06:32.844811Z","id":"CVE-2026-62996","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-07T17:08:09.710Z"}}]}}}