nday
CVE-2018-12613

An issue was discovered in phpMyAdmin 4.8.x before 4.8.2, in which an attacker can include (view…Title composed by nday; the CVE record has none.

A public PoC appeared on the day of disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 3 of 4 PoC sources: exploitdb, metasploit, and nuclei. Not in CISA KEV.

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.

authentication bypass
CWE-287, 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 exploit/multi/http/phpmyadmin_lfi_rce
Exploit-DB
Exploit-DB entries 44924, 44928, 45020, 50457
nuclei
nuclei templates CVE-2018-12613
stage
POC
disclosed
cvss
no score yet

Lifecycle

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

Summary

An issue was discovered in phpMyAdmin 4.8.x before 4.8.2, in which an attacker can include (view and potentially execute) files on the server. The vulnerability comes from a portion of code where pages are redirected and loaded within phpMyAdmin, and an improper test for whitelisted pages. An attacker must be authenticated, except in the "$cfg['AllowArbitraryServer'] = true" case (where an attacker can specify any host he/she is already in control of, and execute arbitrary code on phpMyAdmin) and the "$cfg['ServerDefault'] = 0" case (which bypasses the login requirement and runs the vulnerable code without any authentication).

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

Event log

2018-06-21date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “phpMyAdmin 4.8.1 - Authenticated Local File Inclusion (LFI) (1)” (EDB-44924). Verified by Exploit-DB.

src exploitdb 44924 · nday , bulk import · raw
{
  "id": 37671,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/44924",
  "occurred_at": "2018-06-21T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "44924",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/44924",
    "file": "exploits/php/webapps/44924.txt",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "phpMyAdmin 4.8.1 - Authenticated Local File Inclusion (LFI) (1)",
    "author": "ChaMd5",
    "edb_id": 44924,
    "cve_ids": [
      "CVE-2018-12613"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2018-06-22",
    "date_updated": "2018-07-17",
    "date_published": "2018-06-21"
  }
}
+DISdisclosed

CVE record published by mitre.

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

Exploit-DB lists public exploit code “phpMyAdmin 4.8.1 - Authenticated Local File Inclusion (LFI) (2)” (EDB-44928). Verified by Exploit-DB.

src exploitdb 44928 · nday , bulk import · raw
{
  "id": 37672,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/44928",
  "occurred_at": "2018-06-22T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "44928",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/44928",
    "file": "exploits/php/webapps/44928.txt",
    "kind": "exploit",
    "tags": [
      "File Inclusion (LFI/RFI)"
    ],
    "type": "webapps",
    "title": "phpMyAdmin 4.8.1 - Authenticated Local File Inclusion (LFI) (2)",
    "author": "VulnSpy",
    "edb_id": 44928,
    "cve_ids": [
      "CVE-2018-12613"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2018-06-22",
    "date_updated": "2018-07-17",
    "date_published": "2018-06-22"
  }
}
2018-07-13date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “phpMyAdmin 4.8.0/4.8.1 - Authenticated Remote Code Execution (RCE) (Metasploit)” (EDB-45020). Verified by Exploit-DB.

src exploitdb 45020 · nday , bulk import · raw
{
  "id": 28775,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/45020",
  "occurred_at": "2018-07-13T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "45020",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/45020",
    "file": "exploits/php/remote/45020.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)",
      "Remote"
    ],
    "type": "remote",
    "title": "phpMyAdmin 4.8.0/4.8.1 - Authenticated Remote Code Execution (RCE) (Metasploit)",
    "author": "Metasploit",
    "edb_id": 45020,
    "cve_ids": [
      "CVE-2018-12613"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2018-07-13",
    "date_updated": "2018-07-13",
    "date_published": "2018-07-13"
  }
}
2021-10-25date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “phpMyAdmin 4.8.1 - 'target' Authenticated Local File Inclusion (LFI) / Remote Code Execution (RCE)” (EDB-50457). Verified by Exploit-DB.

src exploitdb 50457 · nday , bulk import · raw
{
  "id": 37673,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/50457",
  "occurred_at": "2021-10-25T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "50457",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/50457",
    "file": "exploits/php/webapps/50457.py",
    "kind": "exploit",
    "tags": [],
    "type": "webapps",
    "title": "phpMyAdmin 4.8.1 - 'target' Authenticated Local File Inclusion (LFI) / Remote Code Execution (RCE)",
    "author": "samguy",
    "edb_id": 50457,
    "cve_ids": [
      "CVE-2018-12613"
    ],
    "platform": "php",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2021-10-25",
    "date_updated": "2021-10-25",
    "date_published": "2021-10-25"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/multi/http/phpmyadmin_lfi_rce (phpMyAdmin Authenticated Remote Code Execution). The source gives no release time for the module.

src metasploit exploit/multi/http/phpmyadmin_lfi_rce · nday , bulk import · raw
{
  "id": 51343,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/phpmyadmin_lfi_rce.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/http/phpmyadmin_lfi_rce",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/phpmyadmin_lfi_rce.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/http/phpmyadmin_lfi_rce.rb",
    "rank": 400,
    "check": true,
    "title": "phpMyAdmin Authenticated Remote Code Execution",
    "cve_ids": [
      "CVE-2018-12613"
    ],
    "fullname": "exploit/multi/http/phpmyadmin_lfi_rce",
    "rank_name": "good",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-04-22 11:58:04 +0000",
    "vuln_disclosure_date": "2018-06-19"
  }
}
time unknownsource gave no time
+POCpublic PoC

Nuclei has detection template CVE-2018-12613 (PhpMyAdmin <4.8.2 - Local File Inclusion). The source gives no release time for the template.

src nuclei · nday , bulk import · raw
{
  "id": 53645,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-12613.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2018-12613",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-12613.yaml",
    "kind": "detection_template",
    "title": "PhpMyAdmin <4.8.2 - Local File Inclusion",
    "severity": "high",
    "confidence": "curated",
    "cvss_score": "8.8",
    "template_id": "CVE-2018-12613",
    "template_path": "http/cves/2018/CVE-2018-12613.yaml"
  }
}

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.