USN-7158-1

Type: Security
Severity: High
Published: 2024-12-12
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 24.04 LTS (Noble Numbat)

It was discovered that Smarty incorrectly handled query parameters in requests. An attacker could possibly use this issue to inject arbitrary Javascript code, resulting in denial of service or potential execution of arbitrary code. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2018-25047, CVE-2023-28447) It was discovered that Smarty did not properly sanitize user input when generating templates. An attacker could, through PHP injection, possibly use this issue to execute arbitrary code. (CVE-2024-35226) Update Instructions: Run `sudo pro fix USN-7158-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: smarty3 - 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T07:52:44.327Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T07:52:44.327Z UTC. Last updated 2025-11-26T08:37:17.440Z UTC.

Upstream Advisory

Affected Packages

  • smarty3 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1-3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1

  • smarty3 3.1.39-2ubuntu1.22.04.2-3.1.39-2ubuntu1.22.04.2

  • smarty3 3.1.48-1ubuntu0.24.04.1-3.1.48-1ubuntu0.24.04.1

Interested in being alerted when there are new versions of smarty3 and the other packages? Set up an alert.
USN-7158-1: Smarty vulnerabilities | Package Alert