CVE-2024-35226
highpriority · track · 0EPSS 0.005 · 43 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.7–7.3
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (18)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-3087MediaWiki: Mehrere SchwachstellenDeutsch2024-10-06csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in MediaWiki ausnutzen, um beliebigen Code auszuführen, vertrauliche Informationen offenzulegen, einen Cross-Site-Scripting-Angriff durchzuführen oder Dateien zu manipulieren.
- GHSA-4rmg-292m-wg3wSmarty vulnerable to PHP Code Injection by malicious attribute in extends-tag2024-05-29ghsa · osvUS
### Impact Template authors could inject php code by choosing a malicous file name for an extends-tag. Users that cannot fully trust template authors should update asap. ### Patches Please upgrade to the most recent version of Smarty v4 or v5. There is no patch for v3.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-35226/cnnvd
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857acnnvd
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3wcnnvd
- https://vigilance.fr/vulnerability/Smarty-code-execution-via-extends-tag-45683cnnvd
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857aenisa_euvd
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3wenisa_euvd
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857anvd
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3wnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan