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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-07 · Modified: 2026-08-07
- Aliases: UBUNTU-CVE-2026-62996
- Record: https://cvemate.com/vulnerability/CVE-2026-62996 · JSON: https://cvemate.com/vulnerability/CVE-2026-62996/json

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

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.419%, percentile 38.207%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu smarty3 (Ubuntu): All versions (No fix recorded)
- ubuntu smarty4 (Ubuntu): All versions (No fix recorded)
- smarty-php smarty: ≥ 5.0.0, \< 5.8.4

## 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>
- <https://ubuntu.com/security/CVE-2026-62996>
- <https://www.cve.org/CVERecord?id=CVE-2026-62996>

---

Data as of 2026-12-05T14:42:47.114Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
