{"id":"CVE-2019-8942","details":"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.","modified":"2026-04-10T04:20:39.644760Z","published":"2019-02-20T03:29:00.250Z","references":[{"type":"ADVISORY","url":"https://wpvulndb.com/vulnerabilities/9222"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4401"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/107088"},{"type":"EVIDENCE","url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce"},{"type":"EVIDENCE","url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/46511/"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html"},{"type":"EVIDENCE","url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/46662/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress","events":[{"introduced":"0"},{"fixed":"8d87e4a8b8aa7d66a4f5dd3795b5450fa0b76af0"},{"introduced":"0"},{"last_affected":"491c67be12ca8a9fe37ae38307ba7e298c976ec3"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"4.9.9"},{"introduced":"0"},{"last_affected":"5.0-NA"}]}}],"versions":["4.9.8","5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8942.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"5.0-beta1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-beta2"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-beta3"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-beta4"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-beta5"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-rc2"}]},{"events":[{"introduced":"0"},{"last_affected":"5.0-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}