← Vulnerability feed

Vulnerability record · CVE-2019-8942 · published 20 February 2019

CVE-2019-8942: WordPress Author-Privilege Image Upload Remote Code Execution

Wordpress · Wordpress

WordPress before 4.9.9 and 5.x before 5.0.1 allows an authenticated author to change the _wp_attached_file Post Meta entry to an arbitrary string and upload a crafted image containing PHP code in Exif metadata, resulting in remote code execution. The flaw is an unrestricted file upload (CWE-434) that can be chained with CVE-2019-8943. It matters because a low-privileged content role can turn a normal media upload into server-side code execution.

8.8 CVSS 3.0 High EPSS 83% · top 0.3% CWE-434 · Unrestricted file upload
8.8CVSS 3.0 base score, v2 6.5
83%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
18References, 12 tagged exploit
17 Jun 2026Last modified by NVD

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityA low-privileged authenticated author can achieve remote code execution, public exploit code exists, and EPSS is very high, though it is not in CISA KEV.

What it is

WordPress before 4.9.9 and 5.x before 5.0.1 allows an authenticated author to change the _wp_attached_file Post Meta entry to an arbitrary string and upload a crafted image containing PHP code in Exif metadata, resulting in remote code execution. The flaw is an unrestricted file upload (CWE-434) that can be chained with CVE-2019-8943. It matters because a low-privileged content role can turn a normal media upload into server-side code execution.

Impact

An attacker with author privileges gains arbitrary code execution on the WordPress host, leading to full compromise of the site and potentially the underlying server. CVSS 3.0 scores it 8.8 (HIGH) with confidentiality, integrity and availability all rated High.

Attack surface

Reached over the network via the WordPress media/upload functionality; the CVSS vector AV:N/AC:L/PR:L/UI:N indicates no user interaction is required but a low-privileged authenticated account (author) is needed. The description confirms the attacker must have author privileges.

Exploitation

CISA KEV does not list this CVE, but EPSS is very high (0.82736 probability, 0.99652 percentile) and multiple references are tagged Exploit, including Packet Storm, Rapid7, Exploit-DB and a vendor analysis, indicating public exploit code exists.

What to do

  • Upgrade WordPress to 4.9.9 or 5.0.1 or later; Debian users should apply DSA-4401.
  • Restrict author-level accounts and review who holds upload/media privileges.
  • Disable or constrain PHP execution in the WordPress uploads directory via web server configuration.
  • Validate and sanitize image metadata handling, and monitor for unexpected changes to _wp_attached_file post meta.
  • Apply the CVE-2019-8943 fix as well, since exploitation can leverage it.

Detection

  • Monitor for modifications to _wp_attached_file post meta values that contain unexpected substrings such as .jpg?file.php.
  • Alert on PHP files or PHP code appearing under wp-content/uploads.
  • Review web server logs for requests to uploaded image paths that execute PHP.
  • Audit author-role accounts for unusual media upload activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html ExploitThird Party AdvisoryVDB Entry
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce ExploitThird Party Advisory
http://www.securityfocus.com/bid/107088 Third Party AdvisoryVDB Entry
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/ ExploitThird Party Advisory
https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html ExploitThird Party Advisory
https://wpvulndb.com/vulnerabilities/9222 Third Party Advisory
https://www.debian.org/security/2019/dsa-4401 Third Party Advisory
https://www.exploit-db.com/exploits/46511/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/46662/ ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html ExploitThird Party AdvisoryVDB Entry
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce ExploitThird Party Advisory
http://www.securityfocus.com/bid/107088 Third Party AdvisoryVDB Entry
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/ ExploitThird Party Advisory
https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html ExploitThird Party Advisory
https://wpvulndb.com/vulnerabilities/9222 Third Party Advisory
https://www.debian.org/security/2019/dsa-4401 Third Party Advisory
https://www.exploit-db.com/exploits/46511/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/46662/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2019-8942 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-63030WordPress REST API route confusion leads to SQL injection and RCEWordPress 6.9.x before 6.9.5 and 7.0.x before 7.0.2 contain a REST API batch endpoint route confusion flaw (CWE-436). Chained with the author__not_in…KEVEPSS 10%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed

Source: NIST National Vulnerability Database (record CVE-2019-8942), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.