{"id":"CVE-2019-8943","published":"2019-02-20T03:00:00Z","modified":"2024-08-04T21:31:37Z","title":"WordPress through 5.0.3 allows Path Traversal in wp_crop_image()","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.","provenance":"source","from":"CVE.org"},"summary":{"text":"An attacker who is already authorised to crop images can exploit it by supplying a filename containing two image extensions and ../ sequences, such as one ending in .jpg?/../../file.jpg, causing the cropped output to be written to an arbitrary directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:38Z"},"cvss":null,"epss":{"score":0.91985,"percentile":0.9982,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"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://www.exploit-db.com/exploits/46511/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/107089","tags":["vdb-entry","x_refsource_BID"]},{"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"]},{"url":"http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2019-18330","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-18330","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":2,"skipped":0,"earliest":"2021-02-01","earliestUrl":"https://github.com/oussama-rahali/CVE-2019-8943","repos":[{"name":"oussama-rahali/CVE-2019-8943","url":"https://github.com/oussama-rahali/CVE-2019-8943","stars":24,"created":"2021-02-01"},{"name":"hadrian3689/wordpress_cropimage","url":"https://github.com/hadrian3689/wordpress_cropimage","stars":3,"created":"2022-09-20"}]},"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"}],"nuclei":[{"id":"CVE-2019-8943","name":"WordPress Core 5.0.0 - Crop-image Shell Upload","severity":"medium","path":"http/cves/2019/CVE-2019-8943.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-8943.yaml"}],"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","http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2019-02-19","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2019-03-01, PoC-in-GitHub 2021-02-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-8943","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":26.0,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9982"},{"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; 2 NVD exploit links; 2 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"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"}]}}