{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-12895","published":"2018-06-26T20:29:00.273000Z","last_modified":"2026-06-17T01:38:32.027000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*","part":"a","vendor":"wordpress","product":"wordpress","version_end_excluding":"4.9.7"},{"criteria":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"8.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"9.0"}],"cpes_truncated":false,"vendors":["wordpress","debian"],"products":["wordpress/wordpress","debian/debian_linux"],"epss":{"score":0.74672,"percentile":0.99649,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"web","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2018-12895/","html_en":"/en/cve/CVE-2018-12895/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12895","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-12895"},"untrusted":{"vendor_name":"Wordpress","product_name":"Wordpress","desc_en":"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":[],"references":[{"url":"http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html","tags":["Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/104569","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://wpvulndb.com/vulnerabilities/9100","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2018/dsa-4250","tags":["Third Party Advisory"]}]}}