CVE-2024-35226
PHP Code Injection by malicious attribute in extends-tag in Smarty
CVSS v3
7.3
HIGH
EPSS Score
0.5 %
exploit probability, as of 2026-10-18
CISA KEV
No
known exploited
Exploitation
none
SSVC status
Get an alert for each new CVE published for smarty/smarty.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- smarty/smartyPackagistfrom 3.0.0 · fixed in 4.5.3
Vendor advisories
- CVE-2024-35226 Red Hat Product Security
php-smarty: php code injection
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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- Published
- 2024-05-28
- Last Modified
- 2026-04-15
Frequently asked questions
What is CVE-2024-35226?
Is CVE-2024-35226 actively exploited?
What is the CVSS score for CVE-2024-35226?
Running smarty/smarty? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2018-13982same product
- CVE-2018-16831same product
- CVE-2018-25047same product
- CVE-2024-24919KEVsame weekInformation disclosure
- CVE-2024-29824KEVsame week
- CVE-2024-23692KEVsame weekRejetto HTTP File Server 2.3m Unauthenticated RCE
- CVE-2024-4358KEVsame weekRegistration Authentication Bypass Vulnerability
- CVE-2024-5274KEVsame week