{"id":"CVE-2021-26119","aliases":["CVE-2021-26119","GHSA-w5hr-jm4j-9jvq"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox escape through template_object in smarty","summary":"Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Smarty before 3.1.39 allows a Sandbox Escape because $smarty.template_object can be accessed in sandbox mode.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Smarty versiones anteriores a 3.1.39, permite un Escape del Sandbox porque un $smarty.template_object puede ser accedido en el modo sandbox","source":"nvd"}],"published":"2021-02-22T01:34:05.000Z","modified":"2026-06-17T03:42:53.890Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.1.39"}],"ecosystem":"Packagist","package":"smarty/smarty","purl":"pkg:composer/smarty/smarty","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.39"}],"vendor":"smarty","product":"smarty","cpe":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202105-06","tags":["patch","third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2022/dsa-5151","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-w5hr-jm4j-9jvq","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26119","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26119.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/smarty-php/smarty","tags":["web"],"sources":["ghsa"]},{"url":"https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-26119","url":"https://www.cve.org/CVERecord?id=CVE-2021-26119","licence":"CVE Terms of Use","modified":"2024-08-03T20:19:20.153Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w5hr-jm4j-9jvq","url":"https://github.com/advisories/GHSA-w5hr-jm4j-9jvq","licence":"CC-BY-4.0","modified":"2024-12-03T06:08:49.026Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-26119","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26119","licence":"Public domain","modified":"2026-06-17T03:42:53.890Z"}],"updatedAt":"2026-11-25T22:58:00.003Z","epss":{"score":0.08494,"percentile":0.95147,"date":"2026-12-01T12:00:22.000Z"}}