CVE-2020-5504
Description
In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page. A malicious user could inject custom SQL in place of their own username when creating queries to this page. An attacker must have a valid MySQL account to access the server.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
OS impact
Debian Fixed 4 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 4:4.9.4+dfsg1-1 |
| sid | Fixed | 4:4.9.4+dfsg1-1 |
| bullseye | Fixed | 4:4.9.4+dfsg1-1 |
| bookworm | Fixed | 4:4.9.4+dfsg1-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | phpmyadmin/phpmyadmin | >=4.0.0,<4.9.4 | 4.9.4 |
| Packagist | phpmyadmin/phpmyadmin | >=5.0.0,<5.0.1 | 5.0.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-5504
- https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md
- https://github.com/phpmyadmin/composer
- https://lists.debian.org/debian-lts-announce/2020/01/msg00011.html
- https://www.phpmyadmin.net/security/PMASA-2020-1
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html
- https://security-tracker.debian.org/tracker/CVE-2020-5504
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.