{"id":"CVE-2019-8942","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-8942","generatedAt":"2026-10-27T23:25:08.235Z","title":"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.","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.","published":"2019-02-20T03:29:00.000Z","lastModified":"2026-06-17T02:42:49.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":8.8,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-434"],"affected":["wordpress/wordpress","debian/debian linux"],"epss":{"score":0.82736,"percentile":0.99666,"date":"2026-10-26","history":[{"date":"2026-09-21","score":0.92721,"percentile":0.99827},{"date":"2026-09-22","score":0.82736,"percentile":0.99654}]},"kev":{"listed":false},"exploits":{"count":2,"verified":true,"firstPublished":"2019-03-01","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":46662,"kind":"exploit","title":"WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)","url":"https://www.exploit-db.com/exploits/46662","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/remote/46662.rb","file":"exploits/php/remote/46662.rb","published":"2019-04-05","added":"2019-04-05","updated":"2019-04-05","author":"Metasploit","type":"remote","platform":"php","port":80,"verified":true,"codes":["CVE-2019-8943","CVE-2019-8942"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/wp_crop_rce.rb"},{"edbId":46511,"kind":"exploit","title":"WordPress Core 5.0 - Remote Code Execution","url":"https://www.exploit-db.com/exploits/46511","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/46511.js","file":"exploits/php/webapps/46511.js","published":"2019-03-01","added":"2019-03-07","updated":"2019-03-07","author":"allyshka","type":"webapps","platform":"php","port":null,"verified":false,"codes":["CVE-2019-8943","CVE-2019-8942"],"tags":null,"aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://gist.github.com/allyshka/f159c0b43f1374f87f2c3817d6401fd6"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 82.7%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[{"kind":"epss","label":"EPSS jump","at":"2026-09-21T00:00:00.000Z","detail":{"to":0.92721,"from":0.82736,"percentile":0.99827},"summary":"EPSS moved from 82.7% to 92.7% probability of exploitation in the next thirty days."}],"references":[{"url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/107088","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["Exploit","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://wpvulndb.com/vulnerabilities/9222","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.debian.org/security/2019/dsa-4401","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/46511/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/46662/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/107088","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://wpvulndb.com/vulnerabilities/9222","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2019/dsa-4401","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/46511/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/46662/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-8942","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}