CVE-2018-12613
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…
- 8.8HighCVSS base score
- 98.4%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 6Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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).
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and 4 Exploit-DB entries for it. 3 references of the record are tagged as an exploit.
Show the exploits9
Metasploit modules1 module
- phpMyAdmin Authenticated Remote Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/phpmyadmin_lfi_rceRank gooddisclosed 19 Jun 2018
Nuclei templates1 template
- PhpMyAdmin <4.8.2 - Local File Inclusion (Nuclei template) (opens in a new tab)
http/cves/2018/CVE-2018-12613.yamlSeverity high
Exploit-DB4 entries
- phpMyAdmin 4.8.1 - Remote Code Execution (RCE) (Exploit-DB entry) (opens in a new tab)
EDB-ID 50457webapps, phppublished 25 Oct 2021Verified
- phpMyAdmin - (Authenticated) Remote Code Execution (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 45020remote, phppublished 13 Jul 2018Verified
- phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (2) (Exploit-DB entry) (opens in a new tab)
EDB-ID 44928webapps, phppublished 22 Jun 2018Verified
- phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (1) (Exploit-DB entry) (opens in a new tab)
EDB-ID 44924webapps, phppublished 21 Jun 2018Verified
References tagged exploit3 references
- 45020 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 44924 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 44928 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 98.4% · top 0.1% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistphpmyadmin/phpmyadminGHSA-x394-g9j8-x7mf (opens in a new tab)
References
References7
- https://www.phpmyadmin.net/security/PMASA-2018-4/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- 45020 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 104532 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 44924 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 44928 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- GLSA-201904-16 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-5695 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-x394-g9j8-x7mf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2018-12613)Record last updated .