CVE-2017-18264Phpmyadmin
Critical 9.8 No auth needed
Follow: this CVE · Phpmyadmin · Phpmyadmin We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- May 1, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Phpmyadmin.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpmyadmin/phpmyadmin |
≥ 4.0 < 4.0.10.20 |
4.0.10.20 |
composer require "phpmyadmin/phpmyadmin:^4.0.10.20" |
| Packagist | phpmyadmin/phpmyadmin |
≥ 4.7.0-beta1 < 4.7.0 |
4.7.0 |
composer require "phpmyadmin/phpmyadmin:^4.7.0" |
| Packagist | phpmyadmin/phpmyadmin |
≥ 4.4.0 ≤ 4.4.15.10 |
no fixed version | — |
| Packagist | phpmyadmin/phpmyadmin |
≥ 4.6.0 ≤ 4.6.6 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-5868-g58j-vrj5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpmyadmin | phpmyadmin | ≥ 4.0.0 < 4.0.10.20 |
| phpmyadmin | phpmyadmin | ≥ 4.4.0 ≤ 4.4.15.10 |
| phpmyadmin | phpmyadmin | ≥ 4.6.0 ≤ 4.6.6 |
| phpmyadmin | phpmyadmin | 4.7.0 |
| phpmyadmin | phpmyadmin | 4.7.0 |
| debian | debian_linux | 8.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- lists.debian.org Third Party Advisory
- www.phpmyadmin.net Patch Vendor Advisory