CVE-2019-8943

medium

Description

WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). 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.

References

https://www.exploit-db.com/exploits/46662/

https://www.exploit-db.com/exploits/46511/

https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/

http://www.securityfocus.com/bid/107089

http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html

http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html

Details

Source: Mitre, NVD

Published: 2019-02-20

Updated: 2021-02-23

Risk Information

CVSS v2

Base Score: 4

Vector: CVSS2#AV:N/AC:L/Au:S/C:N/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Severity: Medium