{"schemaVersion":3,"id":"CVE-2018-12613","aliases":[],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2018-06-21T20:00:00.000Z","modified":"2024-08-05T08:38:06.387Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.9835,"percentile":0.99918,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.9835},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.9835,"percentile":0.99918}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.9835,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.9835,"percentile":0.99918}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_F7EFB0C023A3C524","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"45020","name":"phpMyAdmin - (Authenticated) Remote Code Execution (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/45020","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"php","file":"exploits/php/remote/45020.rb","codes":["CVE-2018-12613"]},"metasploit":null},{"id":"44924","name":"phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (1)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44924","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"webapps","platform":"php","file":"exploits/php/webapps/44924.txt","codes":["CVE-2018-12613"]},"metasploit":null},{"id":"44928","name":"phpMyAdmin 4.8.1 - (Authenticated) Local File Inclusion (2)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44928","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"webapps","platform":"php","file":"exploits/php/webapps/44928.txt","codes":["CVE-2018-12613"]},"metasploit":null},{"id":"50457","name":"phpMyAdmin 4.8.1 - Remote Code Execution (RCE)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50457","maturity":"poc","reliabilityScore":0.8,"verified":true,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"webapps","platform":"php","file":"exploits/php/webapps/50457.py","codes":["CVE-2018-12613"]},"metasploit":null},{"id":"MSF_EXPLOIT_MULTI_HTTP_PHPMYADMIN_LFI_RCE","name":"phpMyAdmin Authenticated Remote Code Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/multi/http/phpmyadmin_lfi_rce.rb","maturity":"weaponized","reliabilityScore":0.6666666666666666,"verified":true,"type":"remote","platforms":[],"requiresAuth":true,"exploitdb":null,"metasploit":{"fullname":"exploit/multi/http/phpmyadmin_lfi_rce","rank":"400","rankName":"good","postAuth":true,"check":true,"stability":["unknown-stability"],"sideEffects":["unknown-side-effects"],"reliability":["unknown-reliability"]}}],"exploitCount":6,"weaknesses":[{"id":"CWE-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"}],"affected":[{"vendor":"phpmyadmin","product":"phpmyadmin","name":"phpMyAdmin","label":"phpmyadmin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.8.0, < 4.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.8.0, < 4.8.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"phpmyadmin","label":"phpMyAdmin","category":"server-app"}},"hubHref":"/vendor/phpmyadmin/phpmyadmin"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.phpmyadmin.net/security/PMASA-2018-4/","label":"www.phpmyadmin.net/security/PMASA-2018-4/","hostname":"www.phpmyadmin.net","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://www.exploit-db.com/exploits/45020/","label":"www.exploit-db.com/exploits/45020/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/104532","label":"www.securityfocus.com/bid/104532","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/44924/","label":"www.exploit-db.com/exploits/44924/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://www.exploit-db.com/exploits/44928/","label":"www.exploit-db.com/exploits/44928/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://security.gentoo.org/glsa/201904-16","label":"security.gentoo.org/glsa/201904-16","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11171-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11171-1"]},"timeline":[{"kind":"published","date":"2018-06-21T20:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T08:38:06.387Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":65,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:24:02.110Z","stale":false,"partial":false}}