{"id":"CVE-2018-12895","published":"2018-06-26T20:00:00Z","modified":"2024-08-05T08:45:02Z","title":"WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"WordPress through 4.9.6 contains a directory traversal flaw in the wp-admin/post.php thumb parameter, which is passed to PHP's unlink function, due to missing filename validation in the wp_delete_attachment function in wp-includes/post.php. An attacker with Author-level (or higher) WordPress account access can exploit it to delete wp-config.php and then run a fresh installation to escalate privileges and execute arbitrary code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:21:13Z"},"cvss":null,"epss":{"score":0.62162,"percentile":0.9918,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/104569","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.debian.org/security/2018/dsa-4250","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://wpvulndb.com/vulnerabilities/9100","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-4848","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-4848","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2018-07-05","earliestUrl":"https://github.com/bloom-ux/cve-2018-12895-hotfix","repos":[{"name":"bloom-ux/cve-2018-12895-hotfix","url":"https://github.com/bloom-ux/cve-2018-12895-hotfix","stars":0,"created":"2018-07-05"}]},"metasploit":[{"name":"Wordpress Arbitrary File Deletion","module":"auxiliary/scanner/http/wp_arbitrary_file_deletion","type":"auxiliary","disclosureDate":"2018-06-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb"}],"first":{"date":"2018-06-26","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html"],"flow":[],"timeline":[{"date":"2018-06-26","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-12895","provenance":"source"},{"date":"2018-06-26","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2018-07-05","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":24.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.84,"detail":"percentile 0.9918"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 1 PoC-in-GitHub repo; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}