SecurityContext

CVE-2019-8942: WordPress - Remote Code Execution

  • Cve: CVE-2019-8942
  • Name: WordPress - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary PHP code on the server, leading to full site compromise.
  • Remediation: Update WordPress to version 4.9.9 or 5.0.1 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs author privileges and to upload a crafted image with malicious Exif metadata.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.81697
  • Epss percentile: 0.99653
  • Assignee: [email protected]
  • Published at: 2019-02-20T03:29:00Z
  • Age in days: 2834
  • Modified at: 2026-06-17T02:42:49Z
  • Patch available: yes
  • Public exploits total: 17
  • References total: 10
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-8942
  • Nvd status: modified
  • Checked, none or zero: nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2021-04-12—no

Hackerone

  • Reports: 4
  • Rank: 2839

Public exploits

Same in every row:

  • Source: nvd
  • Added date: 2019-02-20
Url
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
https://www.exploit-db.com/exploits/46511/

References

UrlSourceTags
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.htmlnvdExploit, Third Party Advisory, VDB Entry
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rcenvdExploit, Third Party Advisory
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/nvdExploit, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2019/03/msg00044.htmlnvdExploit, Third Party Advisory
https://www.exploit-db.com/exploits/46511/nvdExploit, Third Party Advisory, VDB Entry
https://www.exploit-db.com/exploits/46662/nvdExploit, Third Party Advisory, VDB Entry
http://www.securityfocus.com/bid/107088nvdThird Party Advisory, VDB Entry
https://wpvulndb.com/vulnerabilities/9222nvdThird Party Advisory
https://www.debian.org/security/2019/dsa-4401nvdThird Party Advisory
https://unit42.paloaltonetworks.com/network-attack-trends-winter-2020/vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
wordpress:wordpress= 5.0, = 5.0 beta1, = 5.0 beta2, = 5.0 beta3, = 5.0 beta4, = 5.0 beta5, = 5.0 rc1, = 5.0 rc2, = 5.0 rc3, < 4.9.9nonvd/v1/products/wordpress/wordpress
debian:debian_linux= 9.0nonvd/v1/products/debian/debian_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Known exploited by: vulncheck
  • Vulncheck known exploited since: 2021-04-12
  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 17
  • Public exploit first date: 2019-02-19
  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 4
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, initial access
  • Not known: known exploited since, nuclei template, initial access since