CVE-2021-29454

Summary

CVECVE-2021-29454
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-01-10 20:15:00 UTC
Updated2023-11-07 03:32:00 UTC
DescriptionSmarty 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.

Risk And Classification

Problem Types: CWE-74

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 11.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 36 All All All
Operating System Fedoraproject Fedora 37 All All All
Application Smarty Smarty All All All All

References

ReferenceSourceLinkTags
{math} | Smarty MISC www.smarty.net
[SECURITY] Fedora 36 Update: php-Smarty-3.1.47-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] [DLA 2995-1] smarty3 security update MLIST lists.debian.org
Sandbox Escape by math function · Advisory · smarty-php/smarty · GitHub CONFIRM github.com
[SECURITY] Fedora 37 Update: php-Smarty-3.1.47-1.fc37 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Merge pull request from GHSA-29gp-2c3m-3j6m · smarty-php/smarty@215d81a · GitHub MISC github.com
[SECURITY] Fedora 37 Update: php-Smarty-3.1.47-1.fc37 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Release v3.1.42 · smarty-php/smarty · GitHub MISC github.com
Smarty: Multiple vulnerabilities (GLSA 202209-09) — Gentoo security GENTOO security.gentoo.org
Release v4.0.2 · smarty-php/smarty · GitHub MISC github.com
[SECURITY] Fedora 36 Update: php-Smarty-3.1.47-1.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
smarty/smarty - Packagist MISC packagist.org
Debian -- Security Information -- DSA-5151-1 smarty3 DEBIAN www.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179265 Debian Security Update for smarty3 (DLA 2995-1)
  • 179330 Debian Security Update for smarty3 (DSA 5151-1)
  • 184871 Debian Security Update for smarty3smarty4 (CVE-2021-29454)
  • 198715 Ubuntu Security Notification for Smarty Vulnerabilities (USN-5348-1)
  • 283228 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-52154efd61)
  • 283474 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-d5fc9dcdd7)
  • 710622 Gentoo Linux Smarty Multiple Vulnerabilities (GLSA 202209-09)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report