CVE-2018-12613
mediumpriority · attend · 79EPSS 0.984 · 100 %ileexploit · functionalEURUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (9)
Public proof-of-concept and weaponised exploit code.
- EDB-44924phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (1)functional · exploit_db
- EDB-44928phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (2)functional · exploit_db
- EDB-45020phpMyAdmin - (Authenticated) Remote Code Execution (Metasploit)functional · exploit_db
- EDB-50457phpMyAdmin 4.8.1 - Remote Code Execution (RCE)functional · exploit_db
- exploit/multi/http/phpmyadmin_lfi_rcephpMyAdmin Authenticated Remote Code Executionfunctional · metasploit
- 0x00-0x00/CVE-2018-12613PHPMyAdmin v4.8.0 and v.4.8.1 LFI exploitPoC · poc_in_github
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-x394-g9j8-x7mfphpMyAdmin Improper Authentication2022-05-13ghsa · osvUS
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).
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (24)
External citations — patches, advisories, analysis.
- http://www.securityfocus.com/bid/104532cnnvd
- https://packetstormsecurity.com/files/152531/Gentoo-Linux-Security-Advisory-201904-16.htmlcnnvd
- https://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.htmlcnnvd
- https://security.gentoo.org/glsa/201904-16cnnvd
- https://www.exploit-db.com/exploits/44924/cnnvd
- https://www.exploit-db.com/exploits/44928/cnnvd
- https://www.exploit-db.com/exploits/45020/cnnvd
- https://www.exploit-db.com/exploits/50457cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan