{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21408","published":"2022-01-10T20:15:07.913000Z","last_modified":"2026-06-17T03:35:30.470000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_end_excluding":"3.1.43"},{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_start_including":"4.0.0","version_end_excluding":"4.0.3"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"11.0"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"36"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"37"}],"cpes_truncated":false,"vendors":["smarty","debian","fedoraproject"],"products":["smarty/smarty","debian/debian_linux","fedoraproject/fedora"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.02143,"percentile":0.82766,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-4h9c-v5vg-5m6m","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"0","fixed":"3.1.43"}],"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","v3.1.39","v3.1.40","v3.1.41","v3.1.42"],"versions_truncated":false},{"advisory":"GHSA-4h9c-v5vg-5m6m","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"4.0.0","fixed":"4.0.3"}],"versions":["v4.0.0","v4.0.1","v4.0.2"],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2021-21408/","html_en":"/en/cve/CVE-2021-21408/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21408","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21408"},"untrusted":{"vendor_name":"Smarty","product_name":"Smarty","desc_en":"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.","affected":[{"untrusted_vendor":"smarty-php","untrusted_product":"smarty","versions":[]}],"references":[{"url":"https://github.com/smarty-php/smarty/commit/19ae410bf56007a5ef24441cdc6414619cfaf664","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.43","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.0.3","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-4h9c-v5vg-5m6m","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00005.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BRAJVDRGCIY5UZ2PQHKDTT7RMKG6WJQQ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L777JIBIWJV34HS7LXPIDWASG7TT4LNI/","tags":[]},{"url":"https://security.gentoo.org/glsa/202209-09","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5151","tags":["Third Party Advisory"]}]}}