USN-6012-1: Smarty vulnerability

Publication date

13 April 2023

Overview

Smarty could be made to crash or run programs if it received a specially crafted template.


Packages

  • smarty3 - The compiling PHP template engine

Details

It was discovered that Smarty incorrectly parsed blocks' names and
included files' names. A remote attacker with template writing permissions
could use this issue to execute arbitrary PHP code. (CVE-2022-29221)

It was discovered that Smarty incorrectly parsed blocks' names and
included files' names. A remote attacker with template writing permissions
could use this issue to execute arbitrary PHP code. (CVE-2022-29221)

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
22.10 kinetic smarty3 –  3.1.39-2ubuntu1.22.10.1
22.04 jammy smarty3 –  3.1.39-2ubuntu1.22.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 ›