CVE-2018-12895
Summary
| CVE | CVE-2018-12895 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2018-06-26 20:29:00 UTC |
| Updated | 2021-11-05 18:42:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-22
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 8.0 | All | All | All |
| Operating System | Debian | Debian Linux | 9.0 | All | All | All |
| Operating System | Debian | Debian Linux | 8.0 | All | All | All |
| Operating System | Debian | Debian Linux | 9.0 | All | All | All |
| Application | Wordpress | Wordpress | All | All | All | All |
| Application | Wordpress | Wordpress | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| WordPress 4.9.6 Arbitrary File Deletion ≈ Packet Storm | MISC | packetstormsecurity.com | |
| [SECURITY] [DLA 1452-1] wordpress security update | MLIST | lists.debian.org | Mailing List, Third Party Advisory |
| WordPress <= 4.9.6 - Authenticated Arbitrary File Deletion | MISC | wpvulndb.com | Third Party Advisory |
| WARNING: WordPress File Delete to Code Execution | MISC | blog.ripstech.com | Third Party Advisory |
| WordPress CVE-2018-12895 Directory Traversal Vulnerability | BID | www.securityfocus.com | Third Party Advisory, VDB Entry |
| Debian -- Security Information -- DSA-4250-1 wordpress | DEBIAN | www.debian.org | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.