7.3

CVE-2024-35226: PHP Code Injection by malicious attribute in extends-tag in Smarty

Deferred
AliasesUBUNTU-CVE-2024-35226USN-7377-1DEBIAN-CVE-2024-35226
Published 28-05-2024Last modified 03-11-2025

Vulnerability summary

CVE-2024-35226 is a high (CVSS 7.3) Improper Control of Generation of Code vulnerability in smarty-php smarty. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 44.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.3, network access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
0.51%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 1

Timeline

  1. 28-05-2024
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.51%

Chance of exploitation in the next 30 days

Percentile

45%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.51% on 05-11-2026

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • smarty3< 3.1.47-2+deb12u1 | < 3.1.48-2
  • smarty4< 4.5.4-1 | < 4.3.0-1+deb12u2
Ubuntu2 products
  • smarty3All versions (No fix recorded) | < 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 | < 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1 | < 3.1.39-2ubuntu1.22.04.2 | < 3.1.48-1ubuntu0.24.04.1
  • smarty4< 4.3.1-1ubuntu0.24.04.1
Smarty-php1 product
  • smarty≥ 5.0.0, < 5.1.1 | ≥ 3.0.0, < 4.5.3

3 vendors · 5 products

References

9 links