CVE-2021-26119
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
smarty/smarty (Packagist)before 3.1.39GitHub Advisory Database
smarty smartybefore 3.1.39NVD
debian debian_linux9.0, 10.0, 11.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV: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.mdrelease-notes, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2021/04/msg00004.htmlmailing-list, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2021/04/msg00014.htmlmailing-list, third-party-advisory, web
https://security.gentoo.org/glsa/202105-06patch, third-party-advisory, vendor-advisory, web
https://www.debian.org/security/2022/dsa-5151third-party-advisory, vendor-advisory, web
https://github.com/smarty-php/smarty/security/advisories/GHSA-w5hr-jm4j-9jvqweb
https://nvd.nist.gov/vuln/detail/CVE-2021-26119advisory
https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26119.yamlweb
https://github.com/smarty-php/smartyweb
https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.htmlweb

Sources

SourceRecordLicence
CVE ListCVE-2021-26119 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-w5hr-jm4j-9jvq changed 2024-12-03CC-BY-4.0
NVDCVE-2021-26119 changed 2026-06-17Public domain