CVE-2018-12613
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).
What to do
Likely to be exploited: EPSS gives a 98% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Packagist: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | phpmyadmin | Not affected vulnerable_code_not_present | ||
| Alpine Linux 3.24 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.23 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.22 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.21 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.20 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.19 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.18 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.17 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.16 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.15 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.14 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.13 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.12 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.11 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.10 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.9 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Alpine Linux 3.8 | phpmyadmin | Fixed | 4.8.2-r0 | ALPINE-CVE-2018-12613 |
| Packagist library | phpmyadmin/phpmyadmin | Fixed | 4.8.2 | GHSA-x394-g9j8-x7mf |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201904-16 (vendor-advisory)
References
- https://www.phpmyadmin.net/security/PMASA-2018-4/
- https://www.exploit-db.com/exploits/45020/
- http://www.securityfocus.com/bid/104532
- https://www.exploit-db.com/exploits/44924/
- https://www.exploit-db.com/exploits/44928/
- https://security.gentoo.org/glsa/201904-16
- http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.