Advisory

GHSA-4rmg-292m-wg3w

Also known as: CVE-2024-35226

Summary

Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag

Details

Impact
Template authors could inject php code by choosing a malicous file name for an extends-tag. Users that cannot fully trust template authors should update asap.

Patches
Please upgrade to the most recent version of Smarty v4 or v5. There is no patch for v3.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-05-29 18:44 UTC
Modified
2025-11-04 17:06 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.1.1 (ecosystem)

Fixed versions

5.1.1

Fix

The export has no generic command for this ecosystem.

smarty/smarty

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 4.5.3 (ecosystem)

Fixed versions

4.5.3

Fix

The export has no generic command for this ecosystem.

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences