{"id":"GHSA-3rpf-5rqv-689q","summary":"PHP Code Injection by malicious function name in smarty","details":"Template authors could inject php code by choosing a malicous {function} name. Sites that cannot fully trust template authors should update as soon as possible. Please upgrade to 3.1.39 or higher.\n","aliases":["CVE-2021-26120"],"modified":"2024-02-07T18:47:29.853101Z","published":"2021-02-26T19:53:24Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-02-26T19:52:58Z","nvd_published_at":"2021-02-22T02:15:00Z","cwe_ids":["CWE-94"]},"references":[{"type":"WEB","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-3rpf-5rqv-689q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-26120"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/commit/165f1bd4d2eec328cfeaca517a725b46001de838"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/smarty/smarty/CVE-2021-26120.yaml"},{"type":"PACKAGE","url":"https://github.com/smarty-php/smarty"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md#3139---2021-02-17"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202105-06"},{"type":"WEB","url":"https://srcincite.io/blog/2021/02/18/smarty-template-engine-multiple-sandbox-escape-vulnerabilities.html"},{"type":"WEB","url":"https://www.debian.org/security/2022/dsa-5151"}],"affected":[{"package":{"name":"smarty/smarty","ecosystem":"Packagist","purl":"pkg:composer/smarty/smarty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.39"}]}],"versions":["v2.6.24","v2.6.25","v2.6.26","v2.6.27","v2.6.28","v2.6.29","v2.6.30","v2.6.31","v2.6.33","v3.1.11","v3.1.12","v3.1.13","v3.1.14","v3.1.15","v3.1.16","v3.1.17","v3.1.18","v3.1.19","v3.1.20","v3.1.21","v3.1.23","v3.1.24","v3.1.25","v3.1.26","v3.1.27","v3.1.28","v3.1.29","v3.1.30","v3.1.31","v3.1.32","v3.1.33","v3.1.34","v3.1.35","v3.1.36","v3.1.37","v3.1.37.1","v3.1.38"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-3rpf-5rqv-689q/GHSA-3rpf-5rqv-689q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}