CVE-2024-35226: Smarty3 · In affected versions template authors could inject php code by choosing a malicious file
Affects smarty3Source GCVE Database
Not known to be exploited · CVSS 7.3 High · fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 : patch smarty3 soon.
Data as of 24 Nov 2026, 21:14 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.3 |
|---|
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1, 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1, 3.1.39-2ubuntu1.22.04.2 +2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10smarty3pkg:deb/ubuntu/smarty3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10smarty3pkg:deb/ubuntu/smarty3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSsmarty4pkg:deb/ubuntu/smarty4?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSsmarty3pkg:deb/ubuntu/smarty3?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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 are no known workarounds for this vulnerability.
References
- ubuntu.com/security/CVE-2024-35226 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-35226 (opens in a new tab)
- github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w (opens in a new tab)
- github.com/smarty-php/smarty/commit/76881c8d33d80648f70c9b0339f770f5f69a87a2 (opens in a new tab)
- github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a (opens in a new tab)
- ubuntu.com/security/notices/USN-7158-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7377-1 (opens in a new tab)