USN-7377-1: Smarty vulnerability

Publication date

27 March 2025

Overview

Smarty could be made to crash or run programs if it opened a specially crafted file.


Packages

  • smarty4 - The compiling PHP template engine

Details

It was discovered that Smarty did not properly sanitize template file
names. An attacker could possibly use this issue to cause Smarty to
crash, resulting in a denial of service, or possibly execute arbitrary
code.

It was discovered that Smarty did not properly sanitize template file
names. An attacker could possibly use this issue to cause Smarty to
crash, resulting in a denial of service, or possibly execute arbitrary
code.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.10 oracular smarty4 –  4.3.1-1ubuntu0.24.10.1
24.04 noble smarty4 –  4.3.1-1ubuntu0.24.04.1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›