Path traversal in WordPress - CVE-2019-8943

 

Path traversal in WordPress - CVE-2019-8943

Published: February 20, 2019 / Updated: February 3, 2021


Vulnerability identifier: #VU17788
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-8943
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute PHP code on the target system.

The weakness exists due to path traversal in wp_crop_image(). A remote attacker 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.

Successful exploitation of the vulnerability is possible when combined with CVE-2019-8942.

Affected software

WordPress
Arch Linux

How to mitigate CVE-2019-8943

Install update from vendor's website.


Links to Public Exploits and PoC-codes

External References

Related Security Bulletins