CVE-2024-35226
Publication date 28 May 2024
Last updated 12 December 2024
Ubuntu priority
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.
Status
Package | Ubuntu Release | Status |
---|---|---|
smarty3 | 24.10 oracular |
Fixed 3.1.48-1ubuntu0.24.10.1
|
24.04 LTS noble |
Fixed 3.1.48-1ubuntu0.24.04.1
|
|
22.04 LTS jammy |
Fixed 3.1.39-2ubuntu1.22.04.2
|
|
20.04 LTS focal |
Fixed 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1
|
|
18.04 LTS bionic |
Fixed 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1
|
|
16.04 LTS xenial |
Needs evaluation
|
|
smarty4 | 24.10 oracular |
Needs evaluation
|
24.04 LTS noble |
Needs evaluation
|
|
22.04 LTS jammy | Not in release | |
20.04 LTS focal | Not in release |
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu ProReferences
Related Ubuntu Security Notices (USN)
- USN-7158-1
- Smarty vulnerabilities
- 12 December 2024
Other references
- https://www.cve.org/CVERecord?id=CVE-2024-35226
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w
- https://github.com/smarty-php/smarty/commit/76881c8d33d80648f70c9b0339f770f5f69a87a2 (v4.5.3)
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a (v5.2.0)
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a