Skip to main content
← All vulnerabilities
CVE-2026-62996GHSA-RJHH-76WF-8XMW

Smarty Security stream restriction bypass through stream: resource

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.8.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • smarty-php smarty

    From 5.0.0 · fixed in 5.8.4

  • smarty/smartyPackagist

    From 5.0.0 · fixed in 5.8.4

References 4

GitHub · smarty-php/smarty