Path traversal in Smarty - CVE-2026-62996
Published: July 21, 2026
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.