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.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
],
"vendor_product": "debian:debian_linux"
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"introduced": "36"
},
{
"last_affected": "36"
},
{
"introduced": "37"
},
{
"last_affected": "37"
}
],
"source": "CPE_STRING"
}
],
"vendor_product": "fedoraproject:fedora"
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.42"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "215d81a9fa3cd63d82fb3ab56ecaf97cf1e7db71"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.1.42",
"range": [
{
"fixed": "b674cba13d4ae61f063aec20f84a3ec40c006124"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v4.0.2",
"range": [
{
"fixed": "6f4f06db7ebbad6ae7bc98027d9385e60a016906"
}
],
"source": "REFERENCES_TAG"
}
]
}