{"id":"CVE-2021-21408","aliases":["GHSA-4h9c-v5vg-5m6m"],"url":"https://o3.security/vulnerability/CVE-2021-21408","summary":"Access to restricted PHP code by dynamic static class access in smarty","details":"Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Prior to versions 3.1.43 and 4.0.3, template authors could run restricted static php methods. Users should upgrade to version 3.1.43 or 4.0.3 to receive a patch.","published":"2022-01-10T20:15:07.913Z","modified":"2026-07-08T06:29:19.903805614Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.0222,"percentile":0.81125,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"smarty/smarty","fixedVersion":"3.1.43"},{"ecosystem":"Packagist","name":"smarty/smarty","fixedVersion":"4.0.3"}],"fix":{"url":"https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664","label":"smarty-php/smarty@19ae410"},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/"},{"type":"ADVISORY","url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.43"},{"type":"ADVISORY","url":"https://github.com/smarty-php/smarty/releases/tag/v4.0.3"},{"type":"ADVISORY","url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-09"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5151"},{"type":"FIX","url":"https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T06:29:19.903805614Z"}}