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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-94"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29221.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.45"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.1.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "64ad6442ca1da31cefdab5c9874262b702cccddd"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.1.45",
"range": [
{
"fixed": "a2713ab89e6d773bc4819f11857af7f6b2e353a9"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v4.1.1",
"range": [
{
"fixed": "71036be8be02bf93735c47b0b745f722efbc729f"
}
],
"source": "REFERENCES_TAG"
}
]
}