# CVE-2024-35226: smarty3: Smarty is a template engine for PHP, facilitating the separation ofpresentation (HTML/CSS) from application logic

CVE-2024-35226 is fixed in 2 products on 1 platform, first by smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1, released May 28, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-35226
- Priority: High
- CVSS: 7.3 (Medium)
- EPSS: 0.0051
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 28, 2024

## Description

Smarty is a template engine for PHP, facilitating the separation ofpresentation (HTML/CSS) from application logic. In affected versionstemplate authors could inject php code by choosing a malicious file namefor an extends-tag. Sites that cannot fully trust template authors shouldupdate asap. All users are advised to update. There is no patch for userson the v3 branch. There are no known workarounds for this vulnerability.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | smarty3 Debian 12.15 (bookworm) | 3.1.47-2+deb12u1 | [DEBIAN-CVE-2024-35226](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35226.md) | May 28, 2024 |
| Linux | smarty3 Debian 13.5 (trixie) | 3.1.48-2 | [DEBIAN-CVE-2024-35226](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35226.md) | May 28, 2024 |
| Linux | smarty3 Debian 14 | 3.1.48-2 | [DEBIAN-CVE-2024-35226](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35226.md) | May 28, 2024 |
| Linux | smarty3 Ubuntu 18.04.6 LTS (bionic) | 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 | [smarty3 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-smarty3-3.1.31-20161214.1.c7d42e4-selfpack1-3ubuntu0.1-esm1.md) | May 28, 2024 |
| Linux | smarty3 Ubuntu 20.04 LTS (focal) | 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 | [smarty3 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-smarty3-3.1.34-20190228.1.c9f0de05-selfpack1-1ubuntu0.1.md) | May 28, 2024 |
| Linux | smarty3 Ubuntu 22.04.1 LTS (jammy) | 3.1.39-2ubuntu1.22.04.2 | [smarty3 3.1.39-2ubuntu1.22.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-smarty3-3.1.39-2ubuntu1.22.04.2.md) | May 28, 2024 |
| Linux | smarty3 Ubuntu 24.04.5 LTS (noble) | 3.1.48-1ubuntu0.24.04.1 | [smarty3 3.1.48-1ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-smarty3-3.1.48-1ubuntu0.24.04.1.md) | May 28, 2024 |
| Linux | smarty3 Ubuntu 24.10 (oracular) | 3.1.48-1ubuntu0.24.10.1 | [smarty3 3.1.48-1ubuntu0.24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-smarty3-3.1.48-1ubuntu0.24.10.1.md) | Jan 16, 2026 |
| Linux | smarty4 Debian 12.15 (bookworm) | 4.3.0-1+deb12u2 | [DSA-5830-1](https://patchblox.com/security/data/fix/linux/dsa-5830-1.md) | Dec 12, 2024 |
| Linux | smarty4 Debian 13.5 (trixie) | 4.5.4-1 | [DEBIAN-CVE-2024-35226](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35226.md) | May 28, 2024 |
| Linux | smarty4 Debian 14 | 4.5.4-1 | [DEBIAN-CVE-2024-35226](https://patchblox.com/security/data/fix/linux/debian-cve-2024-35226.md) | May 28, 2024 |
| Linux | smarty4 Ubuntu 24.04.5 LTS (noble) | 4.3.1-1ubuntu0.24.04.1 | [smarty4 4.3.1-1ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-smarty4-4.3.1-1ubuntu0.24.04.1.md) | May 28, 2024 |
| Linux | smarty4 Ubuntu 24.10 (oracular) | 4.3.1-1ubuntu0.24.10.1 | [smarty4 4.3.1-1ubuntu0.24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-smarty4-4.3.1-1ubuntu0.24.10.1.md) | Jan 16, 2026 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
