{"id":"CVE-2021-26119","aliases":["GHSA-w5hr-jm4j-9jvq"],"url":"https://o3.security/vulnerability/CVE-2021-26119","summary":"Sandbox escape through template_object in smarty","details":"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.","published":"2021-02-22T02:15:14.260Z","modified":"2026-07-08T05:58:58.577958393Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"smarty/smarty","fixedVersion":"3.1.39"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5151"},{"type":"FIX","url":"https://security.gentoo.org/glsa/202105-06"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-w5hr-jm4j-9jvq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26119"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26119.yaml"},{"type":"WEB","url":"https://github.com/smarty-php/smarty"},{"type":"WEB","url":"https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:58:58.577958393Z"}}