Skip to content

CVE-2019-8942 WordPress Core < 5.0.1 - Remote Code Execution

HighCVSS 8.8 EPSS 81.7% Framework module Public exploit
Published
Updated
Exploit status
Public exploit available

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.

Affected products

ProductAffected versionsFixed in
debian/wordpress(Debian:12) < 5.0.1+dfsg1-1 5.0.1+dfsg1-1
debian/wordpress(Debian:13) < 5.0.1+dfsg1-1 5.0.1+dfsg1-1
debian/wordpress(Debian:14) < 5.0.1+dfsg1-1 5.0.1+dfsg1-1
WordPress < 4.9.9 4.9.9
WordPress = 5.0 No fix listed
WordPress = 5.0-beta1 No fix listed
WordPress = 5.0-beta2 No fix listed
WordPress = 5.0-beta3 No fix listed
WordPress = 5.0-beta4 No fix listed
WordPress = 5.0-beta5 No fix listed
WordPress = 5.0-rc1 No fix listed
WordPress = 5.0-rc2 No fix listed
WordPress = 5.0-rc3 No fix listed
debian linux = 9.0 No fix listed
WordPress(WordPress) < 3.7 3.7
WordPress(WordPress) >= 3.7, < 3.7.28 3.7.28
WordPress(WordPress) >= 3.8, < 3.8.28 3.8.28
WordPress(WordPress) >= 3.9, < 3.9.26 3.9.26
WordPress(WordPress) >= 4.0, < 4.0.25 4.0.25
WordPress(WordPress) >= 4.1, < 4.1.25 4.1.25
WordPress(WordPress) >= 4.2, < 4.2.22 4.2.22
WordPress(WordPress) >= 4.3, < 4.3.18 4.3.18
WordPress(WordPress) >= 4.4, < 4.4.17 4.4.17
WordPress(WordPress) >= 4.5, < 4.5.16 4.5.16
WordPress(WordPress) >= 4.6, < 4.6.13 4.6.13
Show 4 more
ProductAffected versionsFixed in
WordPress(WordPress) >= 4.7, < 4.7.12 4.7.12
WordPress(WordPress) >= 4.8, < 4.8.8 4.8.8
WordPress(WordPress) >= 4.9, < 4.9.9 4.9.9
WordPress(WordPress) = 5.0 No fix listed

References