CVE-2018-12895

Summary

CVECVE-2018-12895
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-06-26 20:29:00 UTC
Updated2021-11-05 18:42:00 UTC
DescriptionWordPress 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.

Risk And Classification

Problem Types: CWE-22

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Wordpress Wordpress All All All All
Application Wordpress Wordpress All All All All

References

ReferenceSourceLinkTags
WordPress 4.9.6 Arbitrary File Deletion ≈ Packet Storm MISC packetstormsecurity.com
[SECURITY] [DLA 1452-1] wordpress security update MLIST lists.debian.org Mailing List, Third Party Advisory
WordPress <= 4.9.6 - Authenticated Arbitrary File Deletion MISC wpvulndb.com Third Party Advisory
WARNING: WordPress File Delete to Code Execution MISC blog.ripstech.com Third Party Advisory
WordPress CVE-2018-12895 Directory Traversal Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Debian -- Security Information -- DSA-4250-1 wordpress DEBIAN www.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report