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.

Advisories in Ubuntu

  • 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 24 November 2026
  • USN-7158-1

    smarty3 vulnerabilities

    CVE-2018-25047CVE-2023-28447CVE-2024-35226 Ubuntu Updated 24 November 2026
  • USN-7377-1

    smarty vulnerability

    CVE-2024-35226 Ubuntu Updated 24 November 2026

References