{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-29454","published":"2022-01-10T20:15:08Z","last_modified":"2026-06-17T03:47:40.450000Z","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-74"],"cpes":[{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_end_excluding":"3.1.42"},{"criteria":"cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*","part":"a","vendor":"smarty","product":"smarty","version_start_including":"4.0.0","version_end_excluding":"4.0.2"},{"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.01861,"percentile":0.79802,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-29gp-2c3m-3j6m","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"0","fixed":"3.1.42"}],"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"],"versions_truncated":false},{"advisory":"GHSA-29gp-2c3m-3j6m","ecosystem":"Packagist","name":"smarty/smarty","purl":"pkg:composer/smarty/smarty","ranges":[{"introduced":"4.0.0","fixed":"4.0.2"}],"versions":["v4.0.0","v4.0.1"],"versions_truncated":false}],"severity":"high","priority_score":53,"links":{"html_es":"/es/cve/CVE-2021-29454/","html_en":"/en/cve/CVE-2021-29454/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29454","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29454"},"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.42 and 4.0.2, template authors could run arbitrary PHP code by crafting a malicious math string. If a math string was passed through as user provided data to the math function, external users could run arbitrary PHP code by crafting a malicious math string. Users should upgrade to version 3.1.42 or 4.0.2 to receive a patch.","affected":[{"untrusted_vendor":"smarty-php","untrusted_product":"smarty","versions":[]}],"references":[{"url":"https://github.com/smarty-php/smarty/commit/215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v3.1.42","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/releases/tag/v4.0.2","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/smarty-php/smarty/security/advisories/GHSA-29gp-2c3m-3j6m","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://packagist.org/packages/smarty/smarty","tags":["Product","Third Party Advisory"]},{"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"]},{"url":"https://www.smarty.net/docs/en/language.function.math.tpl","tags":["Vendor Advisory"]}]}}