{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-29221","published":"2022-05-24T15:15:07.917000Z","last_modified":"2026-06-17T04:39:51.637000Z","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-94"],"cpes":[{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_end_excluding":"3.1.45"},{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_start_including":"4.0.0","version_end_excluding":"4.1.1"},{"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.0412,"percentile":0.91578,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-634x-pc3q-cf4c","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"0","fixed":"3.1.45"}],"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","v3.1.43","v3.1.44"],"versions_truncated":false},{"advisory":"GHSA-634x-pc3q-cf4c","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"4.0.0","fixed":"4.1.1"}],"versions":["v4.0.0","v4.0.1","v4.0.2","v4.0.3","v4.0.4","v4.1.0"],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2022-29221/","html_en":"/en/cve/CVE-2022-29221/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29221","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29221"},"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.45 and 4.1.1, template authors could inject php code by choosing a malicious {block} name or {include} file name. Sites that cannot fully trust template authors should upgrade to versions 3.1.45 or 4.1.1 to receive a patch for this issue. There are currently no known workarounds.","affected":[{"untrusted_vendor":"smarty-php","untrusted_product":"smarty","versions":[]}],"references":[{"url":"https://github.com/smarty-php/smarty/commit/64ad6442ca1da31cefdab5c9874262b702cccddd","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.45","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.1.1","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-634x-pc3q-cf4c","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00044.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"]}]}}