Skip to content

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

MediumCVSS 6.9 EPSS 0.51%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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