---
title: CVE-2024-35226
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-35226
---

# CVE-2024-35226

Publication date 28 May 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.3 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2024-35226#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| smarty3 | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 25.10 questing | Ignored end of life, was needs-triage |
| 25.04 plucky | Ignored end of life, was needs-triage |
| 24.10 oracular | Fixed in 3.1.48-1ubuntu0.24.10.1 |
| 24.04 LTS noble | Fixed in 3.1.48-1ubuntu0.24.04.1 |
| 23.10 mantic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Fixed in 3.1.39-2ubuntu1.22.04.2 |
| 20.04 LTS focal | Fixed in 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 |
| 18.04 LTS bionic | Fixed in 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1  Ubuntu Pro |
| 16.04 LTS xenial | Needs evaluation |
| smarty4 | 26.10 stonking | Not affected |
| 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Fixed in 4.3.1-1ubuntu0.24.10.1 |
| 24.04 LTS noble | Fixed in 4.3.1-1ubuntu0.24.04.1 |
| 23.10 mantic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.3 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.3 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35226)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-35226)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-35226)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-35226)

### Related Ubuntu Security Notices (USN)

+ [USN-7158-1](https://usn.ubuntu.com/USN-7158-1)
+ Smarty vulnerabilities
+ 12 December 2024

+ [USN-7377-1](https://usn.ubuntu.com/USN-7377-1)
+ Smarty vulnerability
+ 27 March 2025

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-35226>
* <https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w>
* <https://github.com/smarty-php/smarty/commit/76881c8d33d80648f70c9b0339f770f5f69a87a2 (v4.5.3)>
* <https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a (v5.2.0)>
