CVE-2019-8942
mediumpriority · attend · 74EPSS 0.827 · 100 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (8)
Public proof-of-concept and weaponised exploit code.
- exploit/multi/http/wp_crop_rceWordPress Crop-image Shell Uploadweaponized · metasploit
- EDB-46662WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)functional · exploit_db
- EDB-46511WordPress Core 5.0 - Remote Code ExecutionPoC · exploit_db
- synacktiv/CVE-2019-8942WordPress crop-image exploitationPoC · poc_in_github
affected products (4)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (38)
External citations — patches, advisories, analysis.
- http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.htmlcnnvd
- http://www.debian.org/security/2019/dsa-4401cnnvd
- http://www.nsfocus.net/vulndb/43680cnnvd
- http://www.rapid7.com/db/modules/exploit/multi/cnnvd
- http://www.securityfocus.com/bid/107088cnnvd
- http://www.wordpress.org/Patchcnnvd
- https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/cnnvd
- https://lists.debian.org/debian-lts-announce/2019/03/msg00044.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan