{"containers":{"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2018-06-26T00:00:00.000Z","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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2021-10-25T18:06:09.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_MISC"],"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/"},{"name":"104569","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/104569"},{"name":"DSA-4250","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"https://www.debian.org/security/2018/dsa-4250"},{"tags":["x_refsource_MISC"],"url":"https://wpvulndb.com/vulnerabilities/9100"},{"name":"[debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update","tags":["mailing-list","x_refsource_MLIST"],"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html"},{"tags":["x_refsource_MISC"],"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html"}],"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":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-05T08:45:02.465Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/"},{"name":"104569","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/104569"},{"name":"DSA-4250","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"https://www.debian.org/security/2018/dsa-4250"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://wpvulndb.com/vulnerabilities/9100"},{"name":"[debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html"}]}]},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2018-12895","datePublished":"2018-06-26T20:00:00.000Z","dateReserved":"2018-06-26T00:00:00.000Z","dateUpdated":"2024-08-05T08:45:02.465Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}