CVE-2021-26119
HIGH 7.5CVSS 3.1Sandbox escape through template_object in smarty
Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.
- Published
- 22 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Also known as
- GHSA-w5hr-jm4j-9jvq
- Sources
- NVDJSONOSV GHSA-w5hr-jm4j-9jvqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smarty | smartycpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:* |
< 3.1.39 | 3.1.39 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | Packagist | smarty/smarty | < 3.1.39 | 3.1.39 |
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, WEB
- https://www.debian.org/security/2022/dsa-5151 · Third Party 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 22 Feb 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Mar 2021)