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).
CVE-2018-12613
Score elevated to 9.0 because EPSS predicts 98% probability of exploitation within the next 30 days (top 0.1% of all CVEs). NVD baseline CVSS 8.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 98%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 9.0(medium)
- EG Risk
- 84(Track)EG Risk 84/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation98% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 99.9%
- KEV
- Not listed
Published
June 21, 2018
Last Modified
November 21, 2024
References (14)
- cve@mitrehttp://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html
- cve@mitrehttp://www.securityfocus.com/bid/104532
- cve@mitrehttps://security.gentoo.org/glsa/201904-16
- cve@mitrehttps://www.exploit-db.com/exploits/44924/
- cve@mitrehttps://www.exploit-db.com/exploits/44928/
- cve@mitrehttps://www.exploit-db.com/exploits/45020/
- cve@mitrehttps://www.phpmyadmin.net/security/PMASA-2018-4/
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://www.securityfocus.com/bid/104532
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/201904-16
- af854a3a-2127-422b-91ae-364da2661108https://www.exploit-db.com/exploits/44924/
- af854a3a-2127-422b-91ae-364da2661108https://www.exploit-db.com/exploits/44928/
- af854a3a-2127-422b-91ae-364da2661108https://www.exploit-db.com/exploits/45020/
- af854a3a-2127-422b-91ae-364da2661108https://www.phpmyadmin.net/security/PMASA-2018-4/
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| phpmyadmin/phpmyadmin | 4.8.0, 4.8.0.1, 4.8.1 | 4.8.2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 3× in last 7d / 8× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-23 01:33 UTCEG score recompute
- 2026-07-22 22:13 UTCEG score recompute
- 2026-07-21 10:18 UTCOSV refresh
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-04 05:56 UTCOSV refresh
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-15 17:43 UTCOSV refresh
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-28 06:25 UTCEG score recompute
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 19:13 UTCOSV refresh
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
Publicly available exploits
(9 references)Working exploit code is in the public domain (1 Metasploit module) (3 GitHub PoCs) (4 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-50457✓ verifiedFirst seen Oct 25, 2021
phpMyAdmin 4.8.1 - Remote Code Execution (RCE)
Open source ↗ - GitHub PoCeastmountyxz/CVE-2018-12613-phpMyAdminFirst seen Feb 19, 2020
这篇文章将分享一个phpMyAdmin 4.8.1版本的文件包含漏洞,从配置到原理,再到漏洞复现进行讲解,更重要的是让大家了解这些真实漏洞背后的知识。基础性文章,希望对您有所帮助!
Open source ↗ - GitHub PoCivanitlearning/CVE-2018-12613First seen Sep 16, 2019
Modified standalone exploit ported for Python 3
Open source ↗ - GitHub PoC0x00-0x00/CVE-2018-12613First seen Nov 9, 2018
PHPMyAdmin v4.8.0 and v.4.8.1 LFI exploit
Open source ↗ - Exploit-DBEDB-45020✓ verifiedFirst seen Jul 13, 2018
phpMyAdmin - (Authenticated) Remote Code Execution (Metasploit)
Open source ↗ - Exploit-DBEDB-44928✓ verifiedFirst seen Jun 22, 2018
phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (2)
Open source ↗ - Exploit-DBEDB-44924✓ verifiedFirst seen Jun 21, 2018
phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (1)
Open source ↗ - Metasploitexploit/multi/http/phpmyadmin_lfi_rce✓ verifiedFirst seen Jun 19, 2018
phpMyAdmin Authenticated Remote Code Execution
Open source ↗ - Nucleihttp/cves/2018/CVE-2018-12613.yamlFirst seen Jan 1, 2018
PhpMyAdmin <4.8.2 - Local File Inclusion
Open source ↗
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2018-12613?
When was CVE-2018-12613 disclosed?
Is CVE-2018-12613 actively exploited?
What is the CVSS score of CVE-2018-12613?
How do I remediate CVE-2018-12613?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2018-12613
Is Your Infrastructure Affected by CVE-2018-12613?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.