Rapid7 Vulnerability & Exploit Database

Wordpress: CVE-2019-8942: Improper Control of Generation of Code ('Code Injection')

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Wordpress: CVE-2019-8942: Improper Control of Generation of Code ('Code Injection')

Severity
7
CVSS
(AV:N/AC:L/Au:S/C:P/I:P/A:P)
Published
02/19/2019
Created
03/19/2019
Added
02/27/2019
Modified
08/12/2020

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.

Solution(s)

  • wordpress-upgrade-4_9_9
  • wordpress-upgrade-5_0_1

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;