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.
Published: 2022-05-24
Score: 8.8 High
EPSS: 25.5% Moderate
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Thu, 24 Apr 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Subscriptions

Debian Debian Linux
Fedoraproject Fedora
Smarty Smarty
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-04-23T18:22:54.999Z

Reserved: 2022-04-13T00:00:00.000Z

Link: CVE-2022-29221

cve-icon Vulnrichment

Updated: 2024-08-03T06:17:54.199Z

cve-icon NVD

Status : Modified

Published: 2022-05-24T15:15:07.917

Modified: 2024-11-21T06:58:44.963

Link: CVE-2022-29221

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses