CVE-2018-12895
CVSS V2 Medium 6.5
CVSS V3 High 8.8
Description
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.
Overview
- CVE ID
- CVE-2018-12895
- Assigner
- cve@mitre.org
- Vulnerability Status
- Analyzed
- Published Version
- 2018-06-26T20:29:00
- Last Modified Date
- 2021-11-05T18:42:39
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:* | 1 | OR | 4.9.7 | |
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:S/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- SINGLE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.5
- Severity
- MEDIUM
- Exploitability Score
- 8
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 8.8
- Base Severity
- HIGH
- Exploitability Score
- 2.8
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ | Third Party Advisory |
http://www.securityfocus.com/bid/104569 | Third Party Advisory VDB Entry |
https://wpvulndb.com/vulnerabilities/9100 | Third Party Advisory |
https://www.debian.org/security/2018/dsa-4250 | Third Party Advisory |
https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html | Mailing List Third Party Advisory |
http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html | Exploit Third Party Advisory VDB Entry |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2018-12895 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12895 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:48:11 | Added to TrackCVE | |||
2022-12-03 08:45:04 | 2018-06-26T20:29Z | 2018-06-26T20:29:00 | CVE Published Date | updated |
2022-12-03 08:45:04 | 2021-11-05T18:42:39 | CVE Modified Date | updated | |
2022-12-03 08:45:04 | Analyzed | Vulnerability Status | updated |