ADVISORIES

Vulnerability

CVE-2022-29221

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.

7 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 3Ubuntu 3Packagist 1

Advisories

  • DEBIAN-CVE-2022-29221

    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…

    CVE-2022-29221 Debian Updated 20 November 2026
  • DLA-3033-1

    smarty3 - security update

    CVE-2022-29221 Debian Updated 20 November 2026
  • DSA-5151-1

    smarty3 - security update

    CVE-2021-21408CVE-2021-29454CVE-2022-29221 Debian Updated 20 November 2026
  • GHSA-634x-pc3q-cf4c

    PHP Code Injection by malicious block or filename in Smarty

    High CVE-2022-29221 Packagist Updated 21 February 2024
  • UBUNTU-CVE-2022-29221

    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…

    CVE-2022-29221 Ubuntu Updated 17 October 2026
  • USN-6012-1

    smarty3 vulnerability

    CVE-2022-29221 Ubuntu Updated 27 April 2026
  • USN-6550-1

    postfixadmin vulnerabilities

    CVE-2022-29221CVE-2022-31129CVE-2023-28447 Ubuntu Updated 27 April 2026

References