CVE-2024-35226 Affecting smarty4 package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2404-SMARTY4-7191166
  • published27 Mar 2025
  • disclosed28 May 2024

Introduced: 28 May 2024

CVE-2024-35226  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:24.04 smarty4.

NVD Description

Note: Versions mentioned in the description apply only to the upstream smarty4 package and not the smarty4 package as distributed by Ubuntu. See How to fix? for Ubuntu:24.04 relevant fixed versions and status.

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.