Vulnerability · Published Aug 7, 2026 · Assigned by GitHub_M

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

Medium 6.9

In plain English

A medium-severity path traversal in smarty from smarty-php. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.5%top 56.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistsmarty/smarty5.8.4GHSA-rjhh-76wf-8xmw
Ubuntu:22.04:LTSsmarty3no fix listedUBUNTU-CVE-2026-62996
Ubuntu:24.04:LTSsmarty3no fix listedUBUNTU-CVE-2026-62996
Ubuntu:26.04:LTSsmarty3no fix listedUBUNTU-CVE-2026-62996
Ubuntu:26.10smarty3no fix listedUBUNTU-CVE-2026-62996
Ubuntu:24.04:LTSsmarty4no fix listedUBUNTU-CVE-2026-62996
Ubuntu:26.04:LTSsmarty4no fix listedUBUNTU-CVE-2026-62996
Ubuntu:26.10smarty4no fix listedUBUNTU-CVE-2026-62996

Affected products (as reported)

VendorProductVersions
smarty-php smarty >= 5.0.0, < 5.8.4

Weakness: CWE-22 · Vector: 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

References