CVE-2021-26119
7.5high
Sandbox escape through template_object in smarty
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 8.49% (higher than 95% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-w5hr-jm4j-9jvq
Description
Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| smarty/smarty (Packagist) | before 3.1.39 | GitHub Advisory Database |
| smarty smarty | before 3.1.39 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
What each source says
CVE List
Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.
GitHub Advisory Database
Sandbox protection could be bypassed through access to an internal Smarty object that should have been blocked. Sites that rely on Smarty Security features should upgrade as soon as possible. Please upgrade to 3.1.39 or higher.
NVD (es)
Smarty versiones anteriores a 3.1.39, permite un Escape del Sandbox porque un $smarty.template_object puede ser accedido en el modo sandbox
References
| https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md | release-notes, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html | mailing-list, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html | mailing-list, third-party-advisory, web | |
| https://security.gentoo.org/glsa/202105-06 | patch, third-party-advisory, vendor-advisory, web | |
| https://www.debian.org/security/2022/dsa-5151 | third-party-advisory, vendor-advisory, web | |
| https://github.com/smarty-php/smarty/security/advisories/GHSA-w5hr-jm4j-9jvq | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-26119 | advisory | |
| https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26119.yaml | web | |
| https://github.com/smarty-php/smarty | web | |
| https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26119 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5hr-jm4j-9jvq changed 2024-12-03 | CC-BY-4.0 |
| NVD | CVE-2021-26119 changed 2026-06-17 | Public domain |