smarty-php/smarty · Security
Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag
- GHSA ID
- GHSA-4rmg-292m-wg3w
- CVE ID
- CVE-2024-35226
- Severity
- high
- Published
- Updated
- CVSS
- 7.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- CVSS v3
- 7.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Description
Impact
Template authors could inject php code by choosing a malicous file name for an extends-tag. Users that cannot fully trust template authors should update asap.
Patches
Please upgrade to the most recent version of Smarty v4 or v5. There is no patch for v3.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-35226 ↗
- https://github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a ↗
- https://lists.debian.org/debian-lts-announce/2024/11/msg00013.html ↗
- https://github.com/advisories/GHSA-4rmg-292m-wg3w ↗