Skip to main content
← All vulnerabilities
CVE-2024-35226GHSA-4RMG-292M-WG3W

PHP Code Injection by malicious attribute in extends-tag in Smarty

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.1.1, 4.5.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust template authors should update asap. All users are advised to update. There is no patch for users on the v3 branch. There are no known workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • smarty-php smarty

    From 5.0.0 · fixed in 5.1.1; From 3.0.0 · fixed in 4.5.3

  • smarty/smartyPackagist

    From 5.0.0 · fixed in 5.1.1

  • smarty/smartyPackagist

    From 3.0.0 · fixed in 4.5.3

References 2

GitHub · smarty-php/smarty