CVE-2024-35226 - CVE House
Back to Database
Status published High CVE-2024-35226

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

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-35226

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

smarty
Vulnerable Versions:
>= 5.0.0, < 5.1.1, >= 3.0.0, < 4.5.3

Timeline

Official Publish: May 28th, 2024
Last Modified: November 3rd, 2025
Added to House: July 22nd, 2026

CVSS Vectors

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

Weaknesses (CWE)