CVE-2019-8942 File upload in n/a
An attacker with author privileges can execute arbitrary code by uploading a crafted image with PHP code in Exif metadata, exploiting a path traversal flaw in file handling.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-8942?
CVE-2019-8942 is a high-severity vulnerability in Debian Debian Linux, published on 20 Feb 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an _wp_attached_file Post Meta entry can be changed to an arbitrary string, such as one ending with a .jpg?file.php substring. An attacker with author privileges can execute arbitrary code by uploading a crafted image containing PHP code in the Exif metadata. Exploitation can leverage CVE-2019-8943.
Weakness: CWE-434
Which versions are affected by CVE-2019-8942?
It affects 2 products.
Products include Debian Debian Linux, Wordpress Wordpress.
How do I fix CVE-2019-8942?
Upgrade to a fixed version.
Is CVE-2019-8942 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-8942 exists.
Public exploit code: 1 Metasploit module, 2 Exploit-DB entries and 5 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2019-8942, GHSA-rwhm-6hw4-9fgg, UBUNTU-CVE-2019-8942.