Path traversal in WordPress - CVE-2019-8943
Published: February 20, 2019 / Updated: February 3, 2021
Vulnerability identifier: #VU17788
CSH Severity: High
CVSS v4.0: 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/E:A/U:Amber
CVE-ID: CVE-2019-8943
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vendor: WordPress.ORG
Affected software:
WordPress
WordPress
Detailed vulnerability description
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.
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.
How to mitigate CVE-2019-8943
Install update from vendor's website.