Code executionin the phpmyadmin/phpmyadmin package.
Weaponized: a Metasploit exploit is public.
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).
- Upgrade phpmyadmin/phpmyadmin (Packagist) to 4.8.2 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Jun 2018Metasploit module: phpMyAdmin Authenticated Remote Code Execution.
- 21 Jun 2018CVE ID reserved by mitre.
- 21 Jun 2018Published in the CVE List.
- 9 Nov 2018First public proof of concept on GitHub.
- 5 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit).
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.
Report a link
Other vulnerabilities in this package
- www.phpmyadmin.net x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- packetstormsecurity.com x_refsource_MISC
Patchminder. CVE-2018-12613: Code execution in the phpmyadmin/phpmyadmin package. https://patchminder.com/cve/cve-2018-12613/ (accessed 5 December 2026).