CVE-2024-35226

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

Published May 28, 2024 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3956-1 smarty3 security update
Debian DSA Debian DSA DSA-5826-1 smarty3 security update
Debian DSA Debian DSA DSA-5830-1 smarty4 security update
EUVD EUVD EUVD-2024-1424 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.
Github GHSA Github GHSA GHSA-4rmg-292m-wg3w Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag
Ubuntu USN Ubuntu USN USN-7158-1 Smarty vulnerabilities
Ubuntu USN Ubuntu USN USN-7377-1 Smarty vulnerability
History
Type Values Removed Values Added
First Time appeared Smarty-php
Smarty-php smarty
CPEs cpe:2.3:a:smarty-php:smarty:*:*:*:*:*:*:*:*
Vendors & Products Smarty-php
Smarty-php smarty
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:54 PM
Reserved
May 14, 2024, 3:39 PM
Status
Deferred
Published
May 28, 2024, 9:16 PM
Modified
Jun 17, 2026, 7:34 AM