Advisory

USN-7158-1

Also known as: CVE-2018-25047, CVE-2023-28447, CVE-2024-35226

Summary

smarty3 vulnerabilities

Details

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)

Severity

Not rated by the source.

Dates

Published
2024-12-12 21:51 UTC
Modified
2026-04-27 17:36 UTC

Affected packages and fixes

smarty3

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 (ecosystem)

Fixed versions

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

Fix

  • Fixed version 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

smarty3

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.1.39-2ubuntu1.22.04.2 (ecosystem)

Fixed versions

3.1.39-2ubuntu1.22.04.2

Fix

  • Fixed version 3.1.39-2ubuntu1.22.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

smarty3

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.1.48-1ubuntu0.24.04.1 (ecosystem)

Fixed versions

3.1.48-1ubuntu0.24.04.1

Fix

  • Fixed version 3.1.48-1ubuntu0.24.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences