nday
CVE-2018-12895

WordPress: path traversalTitle composed by nday; the CVE record has none.

A public PoC appeared 1,217 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit. Not in CISA KEV.

tags weakness typepath traversal accessnetworkno user interaction exploitationMetasploitExploit-DB productWordPress product typeCMS and plugins
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

path traversal
CWE-22, stated by NVD's analysts
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1) from NVD's analysts
Metasploit
Metasploit modules auxiliary/scanner/http/wp_arbitrary_file_deletion
Exploit-DB
Exploit-DB entries 50456
WordPress
CPE names NVD's analysts give as vulnerable: a:wordpress:wordpress
CMS and plugins
CPE names NVD's analysts give as vulnerable: a:wordpress:wordpressthe product type of WordPress in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+1217d POC is date-only
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2018-06-26T20:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2021-10-25, date only
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 65854,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2018-12895",
  "occurred_at": "2018-06-26T20:00:00Z",
  "observed_at": "2026-11-12T23:01:25.305088Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2018-06-26T20:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}
2021-10-25date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Wordpress 4.9.6 - Authenticated Arbitrary File Deletion” (EDB-50456). Verified by Exploit-DB.

src exploitdb 50456 · nday , observed live · raw
{
  "id": 503170,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/50456",
  "occurred_at": "2021-10-25T00:00:00Z",
  "observed_at": "2026-11-23T14:02:02.56302Z",
  "is_backfill": false,
  "dedupe_key": "50456",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/50456",
    "file": "exploits/php/webapps/50456.js",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "Wordpress 4.9.6 - Authenticated Arbitrary File Deletion",
    "author": "samguy",
    "edb_id": 50456,
    "cve_ids": [
      "CVE-2018-12895"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2021-10-25",
    "date_updated": "2026-11-23",
    "date_published": "2021-10-25"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module auxiliary/scanner/http/wp_arbitrary_file_deletion (Wordpress Arbitrary File Deletion). The source gives no release time for the module.

src metasploit auxiliary/scanner/http/wp_arbitrary_file_deletion · nday , bulk import · raw
{
  "id": 50137,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "auxiliary/scanner/http/wp_arbitrary_file_deletion",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb",
    "kind": "msf_module",
    "path": "/modules/auxiliary/scanner/http/wp_arbitrary_file_deletion.rb",
    "rank": 300,
    "check": false,
    "title": "Wordpress Arbitrary File Deletion",
    "cve_ids": [
      "CVE-2018-12895"
    ],
    "fullname": "auxiliary/scanner/http/wp_arbitrary_file_deletion",
    "rank_name": "normal",
    "confidence": "curated",
    "module_type": "auxiliary",
    "module_last_modified": "2025-10-06 17:15:11 +0000",
    "vuln_disclosure_date": "2018-06-26"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.