CVE-2022-29221

Summary

CVECVE-2022-29221
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-05-24 15:15:00 UTC
Updated2023-11-07 03:45:00 UTC
DescriptionSmarty 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.

Risk And Classification

Problem Types: CWE-94

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
[SECURITY] Fedora 36 Update: php-Smarty-3.1.47-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
PHP Code Injection by malicious block or filename · Advisory · smarty-php/smarty · GitHub CONFIRM github.com
[SECURITY] [DLA 3033-1] smarty3 security update MLIST lists.debian.org
[SECURITY] Fedora 37 Update: php-Smarty-3.1.47-1.fc37 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Release v4.1.1 · smarty-php/smarty · GitHub MISC github.com
Merge branch 'security/blockfunctioninjection' · smarty-php/smarty@64ad644 · GitHub MISC github.com
[SECURITY] Fedora 37 Update: php-Smarty-3.1.47-1.fc37 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Smarty: Multiple vulnerabilities (GLSA 202209-09) — Gentoo security GENTOO security.gentoo.org
Release v3.1.45 · 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
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

  • 179328 Debian Security Update for smarty3 (DLA 3033-1)
  • 179330 Debian Security Update for smarty3 (DSA 5151-1)
  • 182181 Debian Security Update for smarty3smarty4 (CVE-2022-29221)
  • 199284 Ubuntu Security Notification for Smarty Vulnerability (USN-6012-1)
  • 199998 Ubuntu Security Notification for PostfixAdmin Vulnerabilities (USN-6550-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