{"id":"CVE-2018-12895","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2018-06-26T20:00:00.000Z","updatedAt":"2024-08-05T08:45:02.465Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","http://www.securityfocus.com/bid/104569","https://www.debian.org/security/2018/dsa-4250","https://wpvulndb.com/vulnerabilities/9100","https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html","http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:44:15.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/12xxx/CVE-2018-12895.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2018-12895","state":"PUBLISHED","datePublished":"2018-06-26T20:00:00.000Z","dateUpdated":"2024-08-05T08:45:02.465Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2018-06-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/104569","name":"104569","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.debian.org/security/2018/dsa-4250","name":"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","name":"[debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-10-25T18:06:09.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2018-06-26T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-12895","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","refsource":"MISC","url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/"},{"name":"104569","refsource":"BID","url":"http://www.securityfocus.com/bid/104569"},{"name":"DSA-4250","refsource":"DEBIAN","url":"https://www.debian.org/security/2018/dsa-4250"},{"name":"https://wpvulndb.com/vulnerabilities/9100","refsource":"MISC","url":"https://wpvulndb.com/vulnerabilities/9100"},{"name":"[debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html"},{"name":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/104569","name":"104569","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://www.debian.org/security/2018/dsa-4250","name":"DSA-4250","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://wpvulndb.com/vulnerabilities/9100","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html","name":"[debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T08:45:02.465Z"}}]}}}