Servers and applications
CVE-2021-26120
PHP Code Injection by malicious function name
- Severity
- Critical 9.8
- Published
- 21 Feb 2021
- Last changed
- 17 Jun 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 3.1.39
- Also known as
- GHSA-3rpf-5rqv-689q
- Sources
- NVD, Project advisories (GitHub)
Description
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.
Affected software
| Software | Affected versions |
|---|---|
SmartyServers and applications · cpe:a:smarty:smarty |
|
SmartyServers and applications · github:smarty-php/smarty |
|
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2021-26120
- CVE.org https://www.cve.org/CVERecord?id=CVE-2021-26120
- GitHub Advisory Database https://github.com/advisories/GHSA-3rpf-5rqv-689q
- github.com https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q