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-2021-29454 Details

Description

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.

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/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71 CVEPatchThird Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v3.1.42 CVERelease NotesThird Party Advisory
https://github.com/smarty-php/smarty/releases/tag/v4.0.2 CVERelease NotesThird Party Advisory
https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m CVEThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html CVEMailing ListThird Party Advisory

see all 22 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')[email protected]
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')[email protected]

Affected Products

ProductVersions
smarty smarty
< 3.1.42
>= 4.0.0, < 4.0.2

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

15 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2021-29454
NVD Published Date:
Jan 10, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2021-29454 Details - Not Deferred