WordPress through 5.0.3 allows Path Traversal in wpcropimage(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.
{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "5.0.3"
}
],
"cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "5.0.3"
}
],
"cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}