Path traversal in Smarty - CVE-2026-62996

 

Path traversal in Smarty - CVE-2026-62996

Published: July 21, 2026


Vulnerability identifier: #VU138908
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-62996
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Smarty

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to improper access control in Smarty's built-in stream resource handling when rendering untrusted templates that use the stream: resource with a nested PHP stream wrapper URI. A remote user can include a crafted stream:php://filter/... resource to disclose sensitive information.

An application must render templates that are not fully trusted while relying on Smarty Security with streams disabled, and file contents can be base64-encoded and rendered through the template.


How to mitigate CVE-2026-62996

Install security update from vendor's website.

Sources