Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2022-29221 Details

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd CVEPatchThird Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v3.1.45 CVERelease NotesThird Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v4.1.1 CVERelease NotesThird Party Advisory
https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c CVEThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00044.html CVEMailing ListThird Party Advisory

see all 18 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]
CWE-94Improper Control of Generation of Code ('Code Injection')[email protected]

Affected Products

ProductVersions
smarty smarty
< 3.1.45
>= 4.0.0, < 4.1.1

CPE

  • cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
9.0
10.0
11.0

CPE

  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
36
37

CPE

  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

12 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-29221
NVD Published Date:
May 24, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-29221 Details - Not Deferred