{"id":"CVE-2018-12613","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-12613","generatedAt":"2026-10-28T20:07:46.123Z","title":"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.","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).","published":"2018-06-21T20:29:00.000Z","lastModified":"2026-06-17T01:38:04.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-287"],"affected":["phpmyadmin/phpmyadmin"],"epss":{"score":0.9835,"percentile":0.99917,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":4,"verified":true,"firstPublished":"2018-06-21","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":50457,"kind":"exploit","title":"phpMyAdmin 4.8.1 - Remote Code Execution (RCE)","url":"https://www.exploit-db.com/exploits/50457","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/50457.py","file":"exploits/php/webapps/50457.py","published":"2021-10-25","added":"2021-10-25","updated":"2021-10-25","author":"samguy","type":"webapps","platform":"php","port":null,"verified":true,"codes":["CVE-2018-12613"],"tags":null,"aliases":null,"applicationUrl":"http://www.exploit-db.comphpmyadmin-RELEASE_4_8_1.tar.gz","screenshotUrl":null,"referenceUrl":null},{"edbId":45020,"kind":"exploit","title":"phpMyAdmin - (Authenticated) Remote Code Execution (Metasploit)","url":"https://www.exploit-db.com/exploits/45020","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/remote/45020.rb","file":"exploits/php/remote/45020.rb","published":"2018-07-13","added":"2018-07-13","updated":"2018-07-13","author":"Metasploit","type":"remote","platform":"php","port":80,"verified":true,"codes":["CVE-2018-12613"],"tags":"Remote","aliases":null,"applicationUrl":"http://www.exploit-db.comphpmyadmin-RELEASE_4_8_1.tar.gz","screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/1ded8ffb299499e18725f4d549fcadaec5528387/modules/exploits/multi/http/phpmyadmin_lfi_rce.rb"},{"edbId":44928,"kind":"exploit","title":"phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (2)","url":"https://www.exploit-db.com/exploits/44928","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/44928.txt","file":"exploits/php/webapps/44928.txt","published":"2018-06-22","added":"2018-06-22","updated":"2018-07-17","author":"VulnSpy","type":"webapps","platform":"php","port":80,"verified":true,"codes":["CVE-2018-12613"],"tags":"File Inclusion (LFI/RFI)","aliases":null,"applicationUrl":"http://www.exploit-db.comphpmyadmin-RELEASE_4_8_1.tar.gz","screenshotUrl":"http://www.exploit-db.com/screenshots/idlt45000/44928.png","referenceUrl":null},{"edbId":44924,"kind":"exploit","title":"phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (1)","url":"https://www.exploit-db.com/exploits/44924","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/44924.txt","file":"exploits/php/webapps/44924.txt","published":"2018-06-21","added":"2018-06-22","updated":"2018-07-17","author":"ChaMd5","type":"webapps","platform":"php","port":80,"verified":true,"codes":["CVE-2018-12613"],"tags":null,"aliases":null,"applicationUrl":"http://www.exploit-db.comphpmyadmin-RELEASE_4_8_1.tar.gz","screenshotUrl":"http://www.exploit-db.com/screenshots/idlt45000/44924.png","referenceUrl":"https://mp.weixin.qq.com/s?__biz=MzIzMTc1MjExOQ==&mid=2247485036&idx=1&sn=8e9647906c5d94f72564dec5bc51a2ab&chksm=e89e2eb4dfe9a7a28bff2efebb5b2723782dab660acff074c3f18c9e7dca924abdf3da618fb4&mpshare=1&scene=1&srcid=0621gAv1FMtrgoahD01psMZr&pass_ticket=LqhR"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 98.4%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/104532","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201904-16","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/44924/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/44928/","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/45020/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://www.phpmyadmin.net/security/PMASA-2018-4/","tags":["Vendor Advisory"],"source":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/104532","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201904-16","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/44924/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/44928/","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/45020/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.phpmyadmin.net/security/PMASA-2018-4/","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12613","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}