ADVISORIES

Vulnerability

CVE-2024-35226

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust template authors should update asap. All users are advised to update. There is no patch for users on the v3 branch. There are no known workarounds for this vulnerability.

8 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 4Ubuntu 3Packagist 1

Advisories

  • DEBIAN-CVE-2024-35226

    Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an…

    CVE-2024-35226 Debian Updated 2 November 2026
  • DLA-3956-1

    smarty3 - security update

    CVE-2018-25047CVE-2023-28447CVE-2024-35226 Debian Updated 20 November 2026
  • DSA-5826-1

    smarty3 - security update

    CVE-2023-28447CVE-2024-35226 Debian Updated 20 November 2026
  • DSA-5830-1

    smarty4 - security update

    CVE-2024-35226 Debian Updated 20 November 2026
  • GHSA-4rmg-292m-wg3w

    Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag

    High CVE-2024-35226 Packagist Updated 4 November 2025
  • UBUNTU-CVE-2024-35226

    Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an…

    CVE-2024-35226 Ubuntu Updated 17 October 2026
  • USN-7158-1

    smarty3 vulnerabilities

    CVE-2018-25047CVE-2023-28447CVE-2024-35226 Ubuntu Updated 27 April 2026
  • USN-7377-1

    smarty vulnerability

    CVE-2024-35226 Ubuntu Updated 27 April 2026

References