CVE-2021-26120
highpriority · attend · 68EPSS 0.823 · 100 %ileEURUUSEPSS · scored 2026-10-27
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-3rpf-5rqv-689qPHP Code Injection by malicious function name in smarty2021-02-26ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (24)
External citations — patches, advisories, analysis.
- https://github.com/smarty-php/smarty/blob/master/CHANGELOG.mdcnnvd
- https://lists.debian.org/debian-lts-announce/2021/04/msg00004.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2021/04/msg00014.htmlcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-26120cnnvd
- https://packetstormsecurity.com/files/162781/Gentoo-Linux-Security-Advisory-202105-06.htmlcnnvd
- https://packetstormsecurity.com/files/166486/Ubuntu-Security-Notice-USN-5348-1.htmlcnnvd
- https://packetstormsecurity.com/files/169259/Debian-Security-Advisory-5151-1.htmlcnnvd
- https://security.gentoo.org/glsa/202105-06cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan