# CVE-2026-62996: Smarty Security stream restriction bypass through stream: resource

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T15:04:52.662Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: GHSA-rjhh-76wf-8xmw
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- smarty-php smarty: >= 5.0.0, < 5.8.4
- smarty/smarty (Packagist): from 5.0.0 before 5.8.4

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw> (exploit, web)
- <https://github.com/smarty-php/smarty/pull/1195> (web)
- <https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e> (web)
- <https://github.com/smarty-php/smarty/releases/tag/v5.8.4> (web)
- <https://github.com/smarty-php/smarty> (package)

## Sources

- CVE List: [CVE-2026-62996](https://www.cve.org/CVERecord?id=CVE-2026-62996), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-rjhh-76wf-8xmw](https://github.com/advisories/GHSA-rjhh-76wf-8xmw), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2026-62996](https://nvd.nist.gov/vuln/detail/CVE-2026-62996), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-62996 · Whole record: https://cve.day/CVE-2026-62996.json · Rebuilt by cve.day 2026-11-25T22:59:31.852Z
