CVE-2018-12895
mediumpriority · attend · 67EPSS 0.622 · 99 %ileexploit · functionalEUUSEPSS · scored 2026-10-26
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (2)
Public proof-of-concept and weaponised exploit code.
affected products (4)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- http://www.securityfocus.com/bid/104569cnnvd
- https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/cnnvd
- https://lists.debian.org/debian-lts-announce/2018/07/msg00046.htmlcnnvd
- https://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.htmlcnnvd
- https://wpvulndb.com/vulnerabilities/9100cnnvd
- https://www.debian.org/security/2018/dsa-4250cnnvd
- https://www.securityfocus.com/bid/104569cnnvd
- http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan