GHSA-4rmg-292m-wg3whigh7.3
Smarty vulnerable to PHP Code Injection by malicious attribute in extends-tag
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
smarty/smarty Packagist
| Affected range | Recorded fix |
|---|---|
| From 5.0.0 before 5.1.1Ecosystem versions | 5.1.1 |
| From 3.0.0 before 4.5.3Ecosystem versions | 4.5.3 |
Version evidence: OSV · GHSA-4rmg-292m-wg3w
View original version evidence (63 explicit versions)
Original source 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.
References
- Security advisory github.com/smarty-php/smarty/security/advisories/GHSA-4rmg-292m-wg3w
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-35226
- Patch github.com/smarty-php/smarty/commit/0be92bc8a6fb83e6e0d883946f7e7c09ba4e857a
- Source reference github.com/smarty-php/smarty
- Source reference lists.debian.org/debian-lts-announce/2024/11/msg00013.html