CVE & CISA-KEV Catalog

CVE-2024-35226

HIGH
7.3
CVSS v3
NVD

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.

How to fix

Remediation Available
smarty3Debian
Fixed in:3.1.39-2+deb11u2CVE-2024-35226
Fixed in:3.1.47-2+deb12u1CVE-2024-35226
Fixed in:3.1.48-2CVE-2024-35226
Fixed in:3.1.48-2CVE-2024-35226
smarty3Ubuntu
Fixed in:3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1USN-7158-1
Fixed in:3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1USN-7158-1
Fixed in:3.1.39-2ubuntu1.22.04.2USN-7158-1
Fixed in:3.1.48-1ubuntu0.24.04.1USN-7158-1
smarty4Ubuntu
Fixed in:4.3.1-1ubuntu0.24.04.1USN-7377-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Exploit Intelligence

0.51%probability of exploitation in 30 days
40thpercentile

Low risk: more likely to be exploited than 40% of all known CVEs.

References

Related Vulnerabilities

Other CWE-94 (Code Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-9841Critical9.8100%KEVFix
CVE-2015-1635Critical9.8100%KEV-
CVE-2022-22954Critical9.8100%KEV + Ransom-
CVE-2021-22204Medium6.8100%KEVFix
CVE-2025-3248Critical9.8100%KEVFix
CVE-2012-0158High8.8100%KEV-
Embed a live status badge for CVE-2024-35226
CVE-2024-35226 severity badge

Markdown

[![CVE-2024-35226](https://tridentstack.com/cve/badge/CVE-2024-35226.svg)](https://tridentstack.com/cve/CVE-2024-35226)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-35226"><img src="https://tridentstack.com/cve/badge/CVE-2024-35226.svg" alt="CVE-2024-35226"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.