7.3

CVE-2024-35226: smarty-php smarty Code Injection

CVSS: 7.3v3.1HighDeferred
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) Code Injection vulnerability in smarty-php smarty. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 42.1% of scored vulnerabilities.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
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 listedIn no KEV catalog
RansomwareNone recordedNo known 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

42%

Versus all other CVEs

30-day change

0.00 pp

From 0.51% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.51%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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