
CVE catalog
CVE-2026-62996
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
- Severity
- Medium · CVSS 6.9
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.51% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | smarty3 | sid | 3.1.48-2 | not affected |
| Debian | smarty3 | forky | 3.1.48-2 | not affected |
| Debian | smarty3 | trixie | 3.1.48-2 | not affected |
| Debian | smarty3 | bookworm | 3.1.47-2+deb12u1 | not affected |
| Debian | smarty3 | bookworm-security | 3.1.47-2+deb12u1 | not affected |
| Debian | smarty4 | sid | 4.5.5-1 | not affected |
| Debian | smarty4 | forky | 4.5.5-1 | not affected |
| Debian | smarty4 | trixie | 4.5.5-1 | not affected |
| Debian | smarty4 | bookworm | 4.3.0-1+deb12u2 | not affected |
| Debian | smarty4 | bookworm-security | 4.3.0-1+deb12u2 | not affected |
| Composer | smarty/smarty | Not reported | 5.8.4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | smarty3 | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty3 | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty3 | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty3 | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty4 | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty4 | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty4 | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | smarty4 | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Composer | smarty/smarty | composer | Not reported | 5.8.4 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [smarty3]Not affected
Details (4)
3.1.47-2+deb12u1· all · bookwormNot affected
nvd · smarty3 · debian · bookworm
3.1.47-2+deb12u1· all · bookwormNot affected
nvd · smarty3 · debian · bookworm
3.1.47-2+deb12u1· all · bookworm-securityNot affected
nvd · smarty3 · debian · bookworm
3.1.47-2+deb12u1· all · bookworm-securityNot affected
nvd · smarty3 · debian · bookworm
- [smarty4]Not affected
Details (4)
4.3.0-1+deb12u2· all · bookwormNot affected
nvd · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookwormNot affected
nvd · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookworm-securityNot affected
nvd · smarty4 · debian · bookworm
4.3.0-1+deb12u2· all · bookworm-securityNot affected
nvd · smarty4 · debian · bookworm
Observed:
References
- [https://github.com/advisories/GHSA-rjhh-76wf-8xmw]
- [https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e]
- [https://github.com/smarty-php/smarty/pull/1195]
- [https://github.com/smarty-php/smarty/releases/tag/v5.8.4]
- [https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-62996]
- [https://security-tracker.debian.org/tracker/CVE-2026-62996]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-62996.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [Red Hat security advisories and VEX]