Vulnerability Name:

CVE-2019-8942 (CCN-157428)

Assigned:2019-02-19
Published:2019-02-19
Updated:2021-07-21
Summary: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 v3 Severity:8.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
8.2 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
8.2 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:6.5 Medium (CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-94
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2019-8942

Source: MISC
Type: Exploit, Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html

Source: MISC
Type: Exploit, Third Party Advisory
http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce

Source: BID
Type: Third Party Advisory, VDB Entry
107088

Source: CCN
Type: RIPSTECH Web site
WordPress 5.0.0 Remote Code Execution

Source: MISC
Type: Exploit, Third Party Advisory
https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/

Source: XF
Type: UNKNOWN
wp-cve20198942-code-exec(157428)

Source: MLIST
Type: Exploit, Third Party Advisory
[debian-lts-announce] 20190331 [SECURITY] [DLA 1742-1] wordpress security update

Source: CCN
Type: Packet Storm Security [04-04-2019]
WordPress 5.0.0 crop-image Shell Upload

Source: CCN
Type: WordPress Web site
WordPress

Source: MISC
Type: Third Party Advisory
https://wpvulndb.com/vulnerabilities/9222

Source: DEBIAN
Type: Third Party Advisory
DSA-4401

Source: EXPLOIT-DB
Type: Exploit, VDB Entry, Third Party Advisory
46511

Source: EXPLOIT-DB
Type: EXPLOIT
Offensive Security Exploit Database [04-05-2019]

Source: EXPLOIT-DB
Type: Exploit, Third Party Advisory, VDB Entry
46662

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2019-8942

Vulnerable Configuration:Configuration 1:
  • cpe:/a:wordpress:wordpress:5.0:beta2:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:beta3:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:beta4:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:beta5:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:rc2:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:beta1:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:-:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:5.0:rc3:*:*:*:*:*:*
  • OR cpe:/a:wordpress:wordpress:*:*:*:*:*:*:*:* (Version < 4.9.9)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:9.0:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:wordpress:wordpress:5.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.disco:def:201989420000000
    V
    CVE-2019-8942 on Ubuntu 19.04 (disco) - untriaged.
    2019-02-20
    oval:com.ubuntu.bionic:def:201989420000000
    V
    CVE-2019-8942 on Ubuntu 18.04 LTS (bionic) - medium.
    2019-02-20
    oval:com.ubuntu.xenial:def:201989420000000
    V
    CVE-2019-8942 on Ubuntu 16.04 LTS (xenial) - medium.
    2019-02-20
    oval:com.ubuntu.bionic:def:20198942000
    V
    CVE-2019-8942 on Ubuntu 18.04 LTS (bionic) - untriaged.
    2019-02-19
    oval:com.ubuntu.cosmic:def:201989420000000
    V
    CVE-2019-8942 on Ubuntu 18.10 (cosmic) - untriaged.
    2019-02-19
    oval:com.ubuntu.cosmic:def:20198942000
    V
    CVE-2019-8942 on Ubuntu 18.10 (cosmic) - untriaged.
    2019-02-19
    oval:com.ubuntu.trusty:def:20198942000
    V
    CVE-2019-8942 on Ubuntu 14.04 LTS (trusty) - untriaged.
    2019-02-19
    oval:com.ubuntu.xenial:def:20198942000
    V
    CVE-2019-8942 on Ubuntu 16.04 LTS (xenial) - untriaged.
    2019-02-19
    BACK
    wordpress wordpress 5.0 beta2
    wordpress wordpress 5.0 beta3
    wordpress wordpress 5.0 beta4
    wordpress wordpress 5.0 beta5
    wordpress wordpress 5.0 rc2
    wordpress wordpress 5.0 beta1
    wordpress wordpress 5.0 -
    wordpress wordpress 5.0 rc1
    wordpress wordpress 5.0 rc3
    wordpress wordpress *
    debian debian linux 9.0
    wordpress wordpress 5.0