{"id":"CVE-2019-8942","published":"2019-02-20T03:00:00Z","modified":"2024-08-04T21:31:37Z","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…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"WordPress before 4.9.9 and 5.x before 5.0.1 contains a flaw in which the _wp_attached_file Post Meta entry can be set to an arbitrary string, such as one ending in a .jpg?file.php substring. An attacker holding author privileges can achieve remote code execution by uploading a crafted image with PHP code embedded in its Exif metadata.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:38Z"},"cvss":null,"epss":{"score":0.81697,"percentile":0.9965,"date":"2026-11-14","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2021-04-12","exploitedFirstSeen":"2021-04-12","ransomware":false,"evidence":[{"url":"https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/","date":"2021-04-12"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":2,"pulses":[{"name":"Log4j","url":"https://otx.alienvault.com/pulse/61df005d9f0ff216afd15bdc","created":"2022-01-12"},{"name":"Ransomware: Night Sky","url":"https://otx.alienvault.com/pulse/61deff0101737ee62817cbd7","created":"2022-01-12"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://wpvulndb.com/vulnerabilities/9222","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46511/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://www.securityfocus.com/bid/107088","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2019/dsa-4401","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html","tags":["x_refsource_MISC"]},{"url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46662/","tags":["exploit","x_refsource_EXPLOIT-DB"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2019-18329","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-18329","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":46511,"url":"https://www.exploit-db.com/exploits/46511","title":"WordPress Core 5.0 - Remote Code Execution","type":"webapps","platform":"php","date":"2019-03-01","verified":false,"provenance":"source"},{"id":46662,"url":"https://www.exploit-db.com/exploits/46662","title":"WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)","type":"remote","platform":"php","date":"2019-04-05","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2019-03-01"},"pocGithub":{"count":5,"skipped":0,"earliest":"2019-02-25","earliestUrl":"https://github.com/brianwrf/WordPress_4.9.8_RCE_POC","repos":[{"name":"brianwrf/WordPress_4.9.8_RCE_POC","url":"https://github.com/brianwrf/WordPress_4.9.8_RCE_POC","stars":74,"created":"2019-02-25"},{"name":"synacktiv/CVE-2019-8942","url":"https://github.com/synacktiv/CVE-2019-8942","stars":4,"created":"2019-05-02"},{"name":"tuannq2299/CVE-2019-8942","url":"https://github.com/tuannq2299/CVE-2019-8942","stars":1,"created":"2022-05-31"},{"name":"SpeatX/WordPress-RCE-CVE-2019-8942","url":"https://github.com/SpeatX/WordPress-RCE-CVE-2019-8942","stars":1,"created":"2026-05-22"},{"name":"synod2/WP_CROP_RCE","url":"https://github.com/synod2/WP_CROP_RCE","stars":0,"created":"2021-05-05"}]},"metasploit":[{"name":"WordPress Crop-image Shell Upload","module":"exploit/multi/http/wp_crop_rce","type":"exploit","disclosureDate":"2019-02-19","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/wp_crop_rce.rb"}],"first":{"date":"2019-02-19","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/wp_crop_rce.rb"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/46511/","https://www.exploit-db.com/exploits/46662/","http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html"],"flow":[],"timeline":[{"date":"2019-02-19","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2019-02-25, Exploit-DB 2019-03-01","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/wp_crop_rce.rb","provenance":"source"},{"date":"2019-02-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2019-8942","provenance":"source"},{"date":"2021-04-12","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":61.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2042 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.93,"detail":"percentile 0.9965"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 NVD references tagged Exploit; 2 Exploit-DB entries; 1 NVD exploit link; 5 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}