Critical severityNVD Advisory· Published Feb 22, 2021· Updated Aug 3, 2024
CVE-2021-26120
CVE-2021-26120
Description
Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
smarty/smartyPackagist | < 3.1.39 | 3.1.39 |
Affected products
2- Smarty/Smartydescription
Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
12- github.com/advisories/GHSA-3rpf-5rqv-689qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-26120ghsaADVISORY
- security.gentoo.org/glsa/202105-06ghsavendor-advisoryx_refsource_GENTOOWEB
- www.debian.org/security/2022/dsa-5151ghsavendor-advisoryx_refsource_DEBIANWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yamlghsaWEB
- github.com/smarty-php/smarty/blob/master/CHANGELOG.mdghsax_refsource_MISCWEB
- github.com/smarty-php/smarty/blob/master/CHANGELOG.mdghsaWEB
- github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838ghsaWEB
- github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689qghsaWEB
- lists.debian.org/debian-lts-announce/2021/04/msg00004.htmlghsamailing-listx_refsource_MLISTWEB
- lists.debian.org/debian-lts-announce/2021/04/msg00014.htmlghsamailing-listx_refsource_MLISTWEB
- srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.htmlghsaWEB
News mentions
0No linked articles in our index yet.