CVE-2026-62996 Smarty Security stream restriction bypass through stream: resource
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebian
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.
Upgrade path
9 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/smarty3(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/smarty3(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/smarty3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/smarty3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/smarty4(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/smarty4(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/smarty4(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| smarty/smarty(Packagist) | = v5.0.0; = v5.0.1; = v5.0.2; = v5.1.0 +19 more | 5.8.4 | Fixed |
| smarty-php smarty | = >= 5.0.0, < 5.8.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| smarty/smarty(Packagist) | >= 5.0.0, < 5.8.4 | 5.8.4 |
| smarty/smarty(Packagist) | = v5.0.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.0.1 | No fix listed |
| smarty/smarty(Packagist) | = v5.0.2 | No fix listed |
| smarty/smarty(Packagist) | = v5.1.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.2.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.3.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.3.1 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.1 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.2 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.3 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.4 | No fix listed |
| smarty/smarty(Packagist) | = v5.4.5 | No fix listed |
| smarty/smarty(Packagist) | = v5.5.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.5.1 | No fix listed |
| smarty/smarty(Packagist) | = v5.5.2 | No fix listed |
| smarty/smarty(Packagist) | = v5.6.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.7.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.8.0 | No fix listed |
| smarty/smarty(Packagist) | = v5.8.1 | No fix listed |
| smarty/smarty(Packagist) | = v5.8.2 | No fix listed |
| smarty/smarty(Packagist) | = v5.8.3 | No fix listed |
| smarty-php smarty | = >= 5.0.0, < 5.8.4 | No fix listed |
| ubuntu/smarty3(Ubuntu:22.04) | All versions | No fix listed |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/smarty3(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/smarty4(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/smarty3(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/smarty4(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/smarty3(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/smarty4(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-rjhh-76wf-8xmw exploit vendor-advisory
- https://github.com/smarty-php/smarty/pull/1195 patch
- https://github.com/smarty-php/smarty/commit/3c9f77a2e06ce319ae0092496af32cc8f3adc52e patch
- github.com product
- https://github.com/smarty-php/smarty/releases/tag/v5.8.4
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2026-62996 vendor-advisory
- ENISA EUVD EUVD-2026-54499 third-party-advisory