PHP Code Injection by malicious function name in smarty
Template authors could inject php code by choosing a malicous {function} name. Sites that cannot fully trust template authors should update as soon as possible. Please upgrade to 3.1.39 or higher.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2021-26120US | critical9.8 | — | ||
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring. | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yamlWEB
- https://github.com/smarty-php/smartyPACKAGE
- https://github.com/smarty-php/smarty/blob/master/CHANGELOG.mdWEB
- https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md#3139---2021-02-17WEB
- https://github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838WEB
- https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689qWEB
- https://lists.debian.org/debian-lts-announce/2021/04/msg00004.htmlWEB
- https://lists.debian.org/debian-lts-announce/2021/04/msg00014.htmlWEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan