Exploit database

Vulnerability

CVE-2019-8942

Vulnerability details

Score
8.8
Severity
high

CVSS 3.0 · NVD

Vector string

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

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.

CVE Program

Exploit source choices

7 sources
WordPress Crop-image Shell Upload
MSF-multi--http--wp_crop_rceMetasploitPHP / remote

This module exploits a path traversal and a local file inclusion vulnerability on WordPress versions 5.0.0 and <= 4.9.8. The crop-image function allows a user, with at least author privileges, to resize an image and perform a path traversal by changing the _wp_attached_file reference during the upload. The second part of the exploit will include this image in the current theme by changing the _wp_page_template attribute when creating a post. This exploit module only works for Unix-based systems currently.

2019-02-19wp_crop_rce.rb
brianwrf/wordpress_4.9.8_rce_poc
GH-9ca8931fb5d9c1e3e576235d02ebede5GitHubUnofficial GitHub source

A simple PoC for WordPress RCE (author priviledge), refer to CVE-2019-8942 and CVE-2019-8943.

2019-02-255 files · 73 stars
oussama-rahali/cve-2019-8943
GH-61872dc4be00a43e0e86858951632496GitHubUnofficial GitHub source

Exploit of CVE-2019-8942 and CVE-2019-8943

2021-02-013 files · 24 stars
synacktiv/cve-2019-8942
GH-9f8dff391208aeb9c39f5a81909c665aGitHubUnofficial GitHub source

WordPress crop-image exploitation

2019-05-024 files · 4 stars
speatx/wordpress-rce-cve-2019-8942
GH-5ba37f2ad5f459af0f63e90ac06e97faGitHubUnofficial GitHub source

Python exploit toolkit for WordPress Crop Image RCE — CVE-2019-8942 & CVE-2019-8943

2026-05-225 files · 1 stars