
CVE catalog
CVE-2024-35226
Smarty vulnerability
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.51% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | smarty3 | sid | 3.1.48-2 | fixed |
| Debian | smarty3 | forky | 3.1.48-2 | fixed |
| Debian | smarty3 | trixie | 3.1.48-2 | fixed |
| Debian | smarty3 | bookworm | 3.1.47-2+deb12u1 | fixed |
| Debian | smarty3 | bookworm-security | 3.1.47-2+deb12u1 | fixed |
| Debian | smarty4 | sid | 4.5.5-1 | fixed |
| Debian | smarty4 | forky | 4.5.5-1 | fixed |
| Debian | smarty4 | trixie | 4.5.5-1 | fixed |
| Debian | smarty4 | bookworm | 4.3.0-1+deb12u2 | fixed |
| Debian | smarty4 | bookworm-security | 4.3.0-1+deb12u2 | fixed |
| Ubuntu | smarty4 | noble | 4.3.1-1ubuntu0.24.04.1 | fixed |
| Ubuntu | smarty3 | noble | 3.1.48-1ubuntu0.24.04.1 | fixed |
| Ubuntu | smarty4 | 24.04 | 4.3.1-1 | vulnerable |
| Ubuntu | smarty4 | 24.04 | 4.3.1-1ubuntu0.24.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | smarty3 | source | sid | 3.1.48-2 | not yet assigned | Not reported | [1072530] |
| Debian | smarty3 | source | forky | 3.1.48-2 | not yet assigned | Not reported | [1072530] |
| Debian | smarty3 | source | trixie | 3.1.48-2 | not yet assigned | Not reported | [1072530] |
| Debian | smarty3 | source | bookworm | 3.1.47-2+deb12u1 | not yet assigned | Not reported | [1072530] |
| Debian | smarty4 | source | sid | 4.5.4-1 | not yet assigned | Not reported | [1072529] |
| Debian | smarty4 | source | forky | 4.5.4-1 | not yet assigned | Not reported | [1072529] |
| Debian | smarty4 | source | trixie | 4.5.4-1 | not yet assigned | Not reported | [1072529] |
| Debian | smarty4 | source | bookworm | 4.3.0-1+deb12u2 | not yet assigned | Not reported | [1072529] |
| Ubuntu | smarty4 | deb | noble | 4.3.1-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | smarty3 | deb | noble | 3.1.48-1ubuntu0.24.04.1 | Not reported | Not reported | Not reported |
| Ubuntu | smarty4 | deb | 24.04 | 4.3.1-1ubuntu0.24.04.1 | Not reported | USN-7377-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [smarty3]Fixed
Details (4)
3.1.47-2+deb12u1· all · bookwormFixed · Fixed:
3.1.47-2+deb12u1usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookwormFixed · Fixed:
3.1.47-2+deb12u1usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.47-2+deb12u1usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12
3.1.47-2+deb12u1· all · bookworm-securityFixed · Fixed:
3.1.47-2+deb12u1usn · smarty3 · debian · bookworm; usn · smarty3 · debian · 12
- [smarty4]Fixed
Details (4)
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.3.0-1+deb12u2usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookwormFixed · Fixed:
4.3.0-1+deb12u2usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.3.0-1+deb12u2usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12
4.3.0-1+deb12u2· all · bookworm-securityFixed · Fixed:
4.3.0-1+deb12u2usn · smarty4 · debian · bookworm; usn · smarty4 · debian · 12
[Debian 13 (Trixie)]
- [smarty3]Fixed
Details (2)
3.1.48-2· all · trixieFixed · Fixed:
3.1.48-2usn · smarty3 · debian · 13
3.1.48-2· all · trixieFixed · Fixed:
3.1.48-2usn · smarty3 · debian · 13
- [smarty4]Fixed
Details (2)
4.5.5-1· all · trixieFixed · Fixed:
4.5.4-1usn · smarty4 · debian · 13
4.5.5-1· all · trixieFixed · Fixed:
4.5.4-1usn · smarty4 · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-35226]
- [https://osv.dev/vulnerability/DSA-5830-1]
- [https://osv.dev/vulnerability/USN-7377-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-35226]
- [https://ubuntu.com/security/notices/USN-7158-1]
- [https://ubuntu.com/security/notices/USN-7377-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-3087.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Ubuntu Security Notices (USN)]