CVE-2021-26119
mediumpriority · track · 33EPSS 0.085 · 95 %ileEURUUSEPSS · scored 2026-10-27
Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
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-w5hr-jm4j-9jvqSandbox escape through template_object in smarty2021-03-02ghsa · osvUS
Sandbox protection could be bypassed through access to an internal Smarty object that should have been blocked. Sites that rely on [Smarty Security features](https://www.smarty.net/docs/en/advanced.features.tpl) should upgrade 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-26119cnnvd
- 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