CVE-2024-35226 HIGH

CVE-2024-35226: PHP Code Injection by malicious attribute in extends-tag in Smarty

Vendor Smarty-Php
Product smarty
Weakness CWE-94 · Code injection
Published May 28, 2024
Last update November 3, 2025

CVSS base score

7.3/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 28, 2024 CVE published
November 3, 2025 Record updated