--- title: "CVE-2019-8942: WordPress before 4.9.9 and 5.x… | CubePath" 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…" language: en source: https://cubepath.com/security/cve/CVE-2019-8942 --- # CVE-2019-8942: WordPress before 4.9.9 and 5.x… | CubePath ## 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. Official description from the CVE record, published by mitre. Copyright © 1999-2026 The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CVE license. [View the record on cve.org](https://www.cve.org/CVERecord?id=CVE-2019-8942) ## Key data ### EPSS Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days. Score 0.82736 (82.7% probability) Percentile 99.7% Scores of Nov 10, 2026 Model v2026.06.15 ## References Links listed in the CVE record. They lead to other sites, which CubePath does not control. - [wpvulndb.com/vulnerabilities/9222](https://wpvulndb.com/vulnerabilities/9222) - [46511](https://www.exploit-db.com/exploits/46511/) (exploit-db.com) exploit - [107088](http://www.securityfocus.com/bid/107088) (securityfocus.com) vdb-entry - [blog.ripstech.com/2019/wordpress-image-remote-code-execution](https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/) - [DSA-4401](https://www.debian.org/security/2019/dsa-4401) (debian.org) vendor-advisory - [\[debian-lts-announce\] 20190331 \[SECURITY\] \[DLA 1742-1\] wordpress security update](https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html) (lists.debian.org) mailing-list - [packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-i…](http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html) - [rapid7.com/db/modules/exploit/multi/http/wp\_crop\_rce](http://www.rapid7.com/db/modules/exploit/multi/http/wp%5Fcrop%5Frce) - [46662](https://www.exploit-db.com/exploits/46662/) (exploit-db.com) exploit ## Timeline 1. ID reserved Feb 19, 2019 2. Record published Feb 20, 2019 3. Record last updated Aug 4, 2024 ## Look up another CVE ## About CubePath CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection. [Cloud VPS](https://cubepath.com/vps) [DDoS protection](https://cubepath.com/ddos-protection) Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 20:01 UTC. [Sources and licenses](https://cubepath.com/security/cve/legal)