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.
Conclusion & alert: CVE-2018-12895 is rated High Exploit Risk (85.9/100): CVSS High severity, with high exploitation likelihood (EPSS 89.59%, 100th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-04 | 88.70% | 89.59% | +0.89% |
| 2 | 2026-06-01 | 89.02% | 88.70% | -0.32% |
| 3 | 2026-03-04 | — | 89.02% | — |
Full EPSS history (63 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.5 | 2.0 | MEDIUM |
|
8.0 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2018-12895 not yet assigned priority: Debian including 1 source packages (wordpress), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2018-12895 |
ubuntu
|
medium | CVE-2018-12895 medium priority: Ubuntu including 1 source packages (wordpress), 20 status rows across 20 suites (artful, bionic, cosmic, disco, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 14, ignored 2, needed 2, DNE 1, released 1. | https://ubuntu.com/security/CVE-2018-12895 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| wordpress | wordpress | < 4.9.7 | cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:* |
| debian | debian_linux | 8.0 | cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| http://packetstormsecurity.com/files/164633/WordPress-4.9.6-Arbitrary-File-Deletion.html | Exploit Third Party Advisory VDB Entry |
| http://www.securityfocus.com/bid/104569 | Third Party Advisory VDB Entry |
| https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/ | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/07/msg00046.html | Mailing List Third Party Advisory |
| https://wpvulndb.com/vulnerabilities/9100 | Third Party Advisory |
| https://www.debian.org/security/2018/dsa-4250 | Third Party Advisory |