CVE-2018-12895
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.
Official description from the CVE record, published by mitre. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
EPSS
- Score
- 0.62162 (62.2% probability)
- Percentile
- 99.2%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
References
- blog.ripstech.com/2018/wordpress-file-delete-to-code-execut…
- 104569 (securityfocus.com)vdb-entry
- DSA-4250 (debian.org)vendor-advisory
- wpvulndb.com/vulnerabilities/9100
- [debian-lts-announce] 20180730 [SECURITY] [DLA 1452-1] wordpress security update (lists.debian.org)mailing-list
- packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitr…
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:48 UTC. Sources and licenses