CVE-2026-62996

Medium

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.

SeverityMedium
CVSS6.9
Exploit probability—
ProductSmarty/smarty
PublishedAug 7, 2026
First seenAug 7, 2026

How to fix

Update
  • smarty/smarty5.8.4 or later

Affected products

ProductAffected versionsFixed in
smarty/smartyPackagist5.0.0 ≤ v < 5.8.45.8.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.