{"id":"CVE-2021-26120","aliases":["GHSA-3rpf-5rqv-689q"],"url":"https://o3.security/vulnerability/CVE-2021-26120","summary":"PHP Code Injection by malicious function name in smarty","details":"Smarty before 3.1.39 allows code injection via an unexpected function name after a {function name= substring.","published":"2021-02-22T02:15:14.323Z","modified":"2026-07-08T05:59:37.637113913Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:59:37.637113913Z"}}