Live threats

All CVEs / smarty-php

CVE-2024-35226smarty-php smarty

High 7.3

Priority
44
CVSS 3.1
7.3
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
Yes
Published
May 28, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for smarty.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist smarty/smarty ≥ 5.0.0 < 5.1.1 5.1.1 composer require "smarty/smarty:^5.1.1"
Packagist smarty/smarty ≥ 3.0.0 < 4.5.3 4.5.3 composer require "smarty/smarty:^4.5.3"

Per OSV / GitHub Advisories (GHSA-4rmg-292m-wg3w). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.