Advisory

GHSA-634x-pc3q-cf4c

Also known as: CVE-2022-29221

Summary

PHP Code Injection by malicious block or filename in Smarty

Details

Impact
Template authors could inject php code by choosing a malicous {block} name or {include} file name. Sites that cannot fully trust template authors should update asap.

Patches
Please upgrade to the most recent version of Smarty v3 or v4.

Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_

References
_Are there any links users can visit to find out more?_

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-25 20:15 UTC
Modified
2024-02-21 05:31 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.45 (ecosystem)

Fixed versions

3.1.45

Fix

The export has no generic command for this ecosystem.

smarty/smarty

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.1.1 (ecosystem)

Fixed versions

4.1.1

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