{"id":"CVE-2019-8942","aliases":["DEBIAN-CVE-2019-8942","DLA-1742-1","DSA-4401-1","EUVD-2019-18329","GHSA-rwhm-6hw4-9fgg","UBUNTU-CVE-2019-8942"],"status":"published","title":"WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an...","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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.82736,"percentile":0.99672,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-434"],"published":"2019-02-20T03:00:00Z","modified":"2026-10-24T10:30:53Z","exploits":[{"source":"metasploit","id":"exploit/multi/http/wp_crop_rce","title":"WordPress Crop-image Shell Upload","type":"exploit","platform":"PHP","date":"2019-02-19","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce"},{"source":"pocgithub","id":"brianwrf/WordPress_4.9.8_RCE_POC","title":"brianwrf/WordPress_4.9.8_RCE_POC","date":"2019-02-25","url":"https://github.com/brianwrf/WordPress_4.9.8_RCE_POC"},{"source":"exploitdb","id":"EDB-46511","title":"WordPress Core 5.0 - Remote Code Execution","type":"webapps","platform":"php","date":"2019-03-01","url":"https://www.exploit-db.com/exploits/46511"},{"source":"exploitdb","id":"EDB-46662","title":"WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)","type":"remote","platform":"php","date":"2019-04-05","verified":true,"url":"https://www.exploit-db.com/exploits/46662"},{"source":"pocgithub","id":"synacktiv/CVE-2019-8942","title":"synacktiv/CVE-2019-8942","date":"2019-05-02","url":"https://github.com/synacktiv/CVE-2019-8942"},{"source":"pocgithub","id":"synod2/WP_CROP_RCE","title":"synod2/WP_CROP_RCE","date":"2021-05-05","url":"https://github.com/synod2/WP_CROP_RCE"},{"source":"pocgithub","id":"tuannq2299/CVE-2019-8942","title":"tuannq2299/CVE-2019-8942","date":"2022-05-31","url":"https://github.com/tuannq2299/CVE-2019-8942"},{"source":"pocgithub","id":"SpeatX/WordPress-RCE-CVE-2019-8942","title":"SpeatX/WordPress-RCE-CVE-2019-8942","date":"2026-05-22","url":"https://github.com/SpeatX/WordPress-RCE-CVE-2019-8942"}],"fixes":[{"ecosystem":"Debian:12","package":"wordpress","fixed_in":["5.0.1+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"wordpress","fixed_in":["5.0.1+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"wordpress","fixed_in":["5.0.1+dfsg1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.26+dfsg-1+deb8u1"}]}],"versions":["4.1+dfsg-1","4.1+dfsg-1+deb8u1","4.1+dfsg-1+deb8u10","4.1+dfsg-1+deb8u11","4.1+dfsg-1+deb8u12","4.1+dfsg-1+deb8u13","4.1+dfsg-1+deb8u14","4.1+dfsg-1+deb8u15","4.1+dfsg-1+deb8u16","4.1+dfsg-1+deb8u17","4.1+dfsg-1+deb8u18","4.1+dfsg-1+deb8u2","4.1+dfsg-1+deb8u3","4.1+dfsg-1+deb8u4","4.1+dfsg-1+deb8u5","4.1+dfsg-1+deb8u6","4.1+dfsg-1+deb8u7","4.1+dfsg-1+deb8u8","4.1+dfsg-1+deb8u9","4.1.1+dfsg-1","4.1.25+dfsg-1+deb8u1"],"bundled":2},{"source":"osv","ecosystem":"Debian:9","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.7.5+dfsg-2+deb9u5"}]}],"versions":["4.7.5+dfsg-2","4.7.5+dfsg-2+deb9u1","4.7.5+dfsg-2+deb9u1~bpo8+1","4.7.5+dfsg-2+deb9u2","4.7.5+dfsg-2+deb9u2~bpo8+1","4.7.5+dfsg-2+deb9u3","4.7.5+dfsg-2+deb9u4"],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"wordpress","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"wordpress","product":"wordpress"}],"references":[{"url":"https://wpvulndb.com/vulnerabilities/9222","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.exploit-db.com/exploits/46511/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://www.securityfocus.com/bid/107088","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://www.debian.org/security/2019/dsa-4401","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://www.exploit-db.com/exploits/46662/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-8942"},{"url":"https://github.com/advisories/GHSA-rwhm-6hw4-9fgg"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-8942","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-8942","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-8942","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-8942","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.","status":"published","published":"2019-02-20T03:00:00Z","modified":"2024-08-04T21:31:37.541Z","updated_at":"2026-11-02T14:20:21.703364Z"}],"euvd":[{"id":"EUVD-2019-18329","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.","status":"published","published":"2019-02-20T03:00:00Z","modified":"2024-08-04T21:31:37Z","updated_at":"2026-11-03T03:06:40.999783Z"}],"ghsa":[{"id":"GHSA-rwhm-6hw4-9fgg","title":"WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an...","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.","status":"published","published":"2022-05-13T01:08:17Z","modified":"2023-02-01T05:03:14Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:50:02.204531Z"}],"nvd":[{"id":"CVE-2019-8942","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.","status":"published","published":"2019-02-20T03:29:00.25Z","modified":"2026-06-17T02:42:49.427Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:05:04.689371Z"}],"osv":[{"id":"CVE-2019-8942","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.","status":"published","published":"2019-02-20T03:29:00.25Z","modified":"2026-10-24T10:30:53.20160825Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:12.974481Z"},{"id":"DEBIAN-CVE-2019-8942","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.","status":"published","published":"2019-02-20T03:29:00.25Z","modified":"2026-09-21T07:00:19.927945167Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:32.57265Z"},{"id":"UBUNTU-CVE-2019-8942","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.","status":"published","published":"2019-02-20T03:29:00Z","modified":"2025-10-24T04:47:32Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:22.212782Z"},{"id":"DLA-1742-1","title":"wordpress - security update","status":"published","published":"2019-04-01T00:00:00Z","modified":"2026-03-09T01:20:12.362406Z","updated_at":"2026-11-02T15:46:09.777694Z"},{"id":"DSA-4401-1","title":"wordpress - security update","status":"published","published":"2019-03-01T00:00:00Z","modified":"2026-03-09T02:10:14.434121Z","updated_at":"2026-11-02T15:46:16.862196Z"}]}}
