Vulnerability Name:

CVE-2018-12895

Assigned:2018-06-26
Published:2018-06-26
Updated:2018-06-30
Summary:WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb parameter, which is passed to the PHP unlink function and can delete the wp-config.php file. This is related to missing filename validation in the wp-includes/post.php wp_delete_attachment function. The attacker must have capabilities for files and posts that are normally available only to the Author, Editor, and Administrator roles. The attack methodology is to delete wp-config.php and then launch a new installation process to increase the attacker's privileges.
CVSS v3 Severity:7.3 High (CCN CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
6.4 Medium (CCN Temporal CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:U/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:7.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
References:Source: BID
Type: UNKNOWN
104569

Source: MISC
Type: UNKNOWN
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/

Source: XF
Type: UNKNOWN
wp-cve201812895-code-exec(145463)

Source: MISC
Type: UNKNOWN
https://wpvulndb.com/vulnerabilities/9100

Vulnerable Configuration:
Configuration CCN 1:
  • cpe:/a:wordpress:wordpress:4.9.6:*:*:*:*:*:*:*

  • Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.artful:def:201812895000
    V
    CVE-2018-12895 on Ubuntu 17.10 (artful) - medium.
    2018-06-26
    oval:com.ubuntu.trusty:def:201812895000
    V
    CVE-2018-12895 on Ubuntu 14.04 LTS (trusty) - medium.
    2018-06-26
    oval:com.ubuntu.xenial:def:201812895000
    V
    CVE-2018-12895 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-06-26
    BACK
    wordpress wordpress 4.9.6