Advisory

UBUNTU-CVE-2024-35226

Also known as: CVE-2024-35226

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Dates

Published
2024-05-28 21:16 UTC
Modified
2026-10-17 12:56 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.

smarty4

Debian packages (deb) · Ubuntu 24.04

Affected

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

Fixed versions

4.3.1-1ubuntu0.24.04.1

Fix

  • Fixed version 4.3.1-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.

smarty3

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

smarty3

Debian packages (deb) · Ubuntu 26.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

smarty3

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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