Smarty_Security::isTrustedResourceDir() in Smarty before 3.1.33 is prone to a path traversal vulnerability due to insufficient template code sanitization. This allows attackers controlling the executed template code to bypass the trusted directory security restriction and read arbitrary files.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
],
"vendor_product": "debian:debian_linux"
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:smarty:smarty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.33"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "2e081a51b1effddb23f87952959139ac62654d50"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "bcedfd6b58bed4a7366336979ebaa5a240581531"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "c9dbe1d08c081912d02bd851d1d1b6388f6133d1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8"
}
],
"source": "REFERENCES_COMMIT"
}
]
}