CVE-2022-29221

PHP Code Injection by malicious block or filename in Smarty

Published May 24, 2022 CVSS 3.1 · 8.8 High EPSS 4.9% KEV · Not listed
Description
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3033-1 smarty3 security update
Debian DSA Debian DSA DSA-5151-1 smarty3 security update
Github GHSA Github GHSA GHSA-634x-pc3q-cf4c PHP Code Injection by malicious block or filename in Smarty
Ubuntu USN Ubuntu USN USN-6012-1 Smarty vulnerability
Ubuntu USN Ubuntu USN USN-6550-1 PostfixAdmin vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 6:22 PM
Reserved
Apr 13, 2022, 12:00 AM
Status
Modified
Published
May 24, 2022, 3:15 PM
Modified
Jun 17, 2026, 4:39 AM