{"id":"CVE-2019-8943","details":"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.","modified":"2026-07-08T20:29:55.777373Z","published":"2019-02-20T03:29:00.297Z","references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/107089"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html"},{"type":"EVIDENCE","url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce"},{"type":"EVIDENCE","url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/46511/"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/46662/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress","events":[{"introduced":"0"},{"last_affected":"dd6d013992bb06ebeccda588f1ce6bbb576499be"}],"database_specific":{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"5.0.3"}],"source":"CPE_RANGE"}}],"versions":["5.0.3","4.9.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8943.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress-develop","events":[{"introduced":"0"},{"last_affected":"978939d1a56dfeb5a8f9e60f4258a17e8da2f6fb"}],"database_specific":{"cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"5.0.3"}],"source":"CPE_RANGE"}}],"versions":["5.0.3","4.9.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8943.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}