Advisory

GHSA-3rpf-5rqv-689q

Also known as: CVE-2021-26120

Summary

PHP Code Injection by malicious function name in smarty

Details

Template authors could inject php code by choosing a malicous {function} name. Sites that cannot fully trust template authors should update as soon as possible. Please upgrade to 3.1.39 or higher.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-02-26 19:53 UTC
Modified
2024-02-16 08:11 UTC

Affected packages and fixes

smarty/smarty

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.39 (ecosystem)

Fixed versions

3.1.39

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