CVE-2019-8942: Malicious File Upload

Published Feb 20, 2019
·
Updated

WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an wpattachedfile 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 Software

12 affected componentsFixes available
debian/wordpress
5.0.15+dfsg1-0+deb10u15.0.19+dfsg1-0+deb10u15.7.8+dfsg1-0+deb11u26.1.1+dfsg1-16.3.1+dfsg1-1
WordPress WordPress<4.9.9
WordPress WordPress=5.0
WordPress WordPress=5.0-beta1
WordPress WordPress=5.0-beta2
WordPress WordPress=5.0-beta3
WordPress WordPress=5.0-beta4
WordPress WordPress=5.0-beta5
WordPress WordPress=5.0-rc1
WordPress WordPress=5.0-rc2
WordPress WordPress=5.0-rc3
Debian Debian Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 5.0.15+dfsg1-0+deb10u1Fixed in 5.0.19+dfsg1-0+deb10u1Fixed in 5.7.8+dfsg1-0+deb11u2Fixed in 6.1.1+dfsg1-1Fixed in 6.3.1+dfsg1-1

Event History

Feb 20, 2019
CVE Published
via MITRE·03:00 AM
Data Sourced
via MITRE·03:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2019-8942?

CVE-2019-8942 is classified as a high severity vulnerability due to the potential for remote code execution.

2

How do I fix CVE-2019-8942?

To fix CVE-2019-8942, upgrade WordPress to the latest version that is patched for this vulnerability.

3

Who is affected by CVE-2019-8942?

CVE-2019-8942 affects WordPress versions prior to 4.9.9 and 5.0.1, including all beta and release candidate versions.

4

What type of vulnerability is CVE-2019-8942?

CVE-2019-8942 is a remote code execution vulnerability that allows an attacker to execute arbitrary code on the server.

5

What can attackers do with CVE-2019-8942?

Attackers with author privileges can exploit CVE-2019-8942 to upload malicious files disguised as images, leading to code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203