patchminder
Weaponized · Metasploit CVE-2018-12613

Code executionin the phpmyadmin/phpmyadmin package.

Published 21 Jun 2018 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 8.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 98.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.8.2 or later
In plain words

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).

What to do now
  • Upgrade phpmyadmin/phpmyadmin (Packagist) to 4.8.2 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
phpmyadmin/phpmyadmin (Packagist)
4.8 to before 4.8.2
4.8.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 19 Jun 2018
    Metasploit module: phpMyAdmin Authenticated Remote Code Execution.
  2. 21 Jun 2018
    CVE ID reserved by mitre.
  3. 21 Jun 2018
    Published in the CVE List.
  4. 9 Nov 2018
    First public proof of concept on GitHub.
  5. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
5 entries
GitHub proof of concepts
4 repositories
Exploit-DBEDB-ID 45020remote exploit for php, published 13 Jul 2018, verified by Exploit-DB
Exploit-DBEDB-ID 45020remote exploit for php, published 13 Jul 2018, verified by Exploit-DB
Exploit-DBEDB-ID 44924web application exploit for php, published 21 Jun 2018, verified by Exploit-DB
Exploit-DBEDB-ID 44928web application exploit for php, published 22 Jun 2018, verified by Exploit-DB
Exploit-DBEDB-ID 50457web application exploit for php, published 25 Oct 2021, verified by Exploit-DB
GitHubno warning signs found0x00-0x00/CVE-2018-1261310 stars · created 9 Nov 2018PHPMyAdmin v4.8.0 and v.4.8.1 LFI exploit
GitHubno warning signs foundivanitlearning/CVE-2018-126134 stars · created 16 Sep 2019Modified standalone exploit ported for Python 3
GitHubno warning signs foundeastmountyxz/CVE-2018-12613-phpMyAdmin2 stars · created 19 Feb 2020这篇文章将分享一个phpMyAdmin 4.8.1版本的文件包含漏洞,从配置到原理,再到漏洞复现进行讲解,更重要的是让大家了解这些真实漏洞背后的知识。基础
GitHubno warning signs foundCyberCTF/vulhub-phpmyadmin-cve-2018-126130 stars · created 8 Oct 2026Vulhub phpmyadmin/CVE-2018-12613: phpMyAdmin 4.8.1 local file inclusion, run with Isoloom
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2018-12613: Code execution in the phpmyadmin/phpmyadmin package. https://patchminder.com/cve/cve-2018-12613/ (accessed 5 December 2026).