CVE-2017-18264
An issue was discovered in libraries/common.inc.php in phpMyAdmin 4.0 before 4.0.10.20, 4.4.x, 4.6.x, and 4.7.0 prereleases. The restrictions caused by $cfg['Servers'][$i]['AllowNoPassword'] = false are bypassed under certain PHP versions (e.g., version 5). This can allow the login of users who have no password set even if the administrator has set $cfg['Servers'][$i]['AllowNoPassword'] to false (which is also the default). This occurs because some implementations of the PHP substr function return false when given '' as the first argument.
What to do
Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
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 22.04 | phpmyadmin | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | phpmyadmin | Fix pending | 4:4.5.4.1-2ubuntu2.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2017-18264 |
| Ubuntu 14.04 | phpmyadmin | Fix pending | 4:4.0.10-1ubuntu0.1+esm4 (Ubuntu Pro) | UBUNTU-CVE-2017-18264 |
| Debian 14 | phpmyadmin | Fixed | 4:4.6.6-2 | DEBIAN-CVE-2017-18264 |
| Debian 13 | phpmyadmin | Fixed | 4:4.6.6-2 | DEBIAN-CVE-2017-18264 |
| Debian 12 | phpmyadmin | Fixed | 4:4.6.6-2 | DEBIAN-CVE-2017-18264 |
| Packagist library | phpmyadmin/phpmyadmin | Fixed | 4.7.0 | GHSA-5868-g58j-vrj5 |
References
- https://www.phpmyadmin.net/security/PMASA-2017-8/
- https://lists.debian.org/debian-lts-announce/2018/07/msg00006.html
- http://www.securityfocus.com/bid/97211
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.