{"id":"UBUNTU-CVE-2020-5504","details":"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.","modified":"2026-04-27T16:38:20.212683Z","published":"2020-01-09T22:15:00Z","related":["USN-4639-1","USN-4843-1"],"upstream":["CVE-2020-5504"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-5504"},{"type":"REPORT","url":"https://github.com/phpmyadmin/phpmyadmin/commit/c86acbf3ed49f69cf38b31879886dd5eb86b6983"},{"type":"REPORT","url":"https://gist.github.com/ibennetch/4c1b701f4b766e4dd5556e8e26200b6b"},{"type":"REPORT","url":"https://www.phpmyadmin.net/security/PMASA-2020-1/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4639-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4843-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-5504"}],"affected":[{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/phpmyadmin@4:4.5.4.1-2ubuntu2.1+esm6?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:4.5.4.1-2ubuntu2.1+esm6"}]}],"versions":["4:4.4.13.1-1","4:4.5.0.2-2","4:4.5.1-1","4:4.5.1-2","4:4.5.1-3","4:4.5.2-1","4:4.5.2-2","4:4.5.3.1-1","4:4.5.4-1","4:4.5.4.1-2","4:4.5.4.1-2ubuntu1","4:4.5.4.1-2ubuntu2","4:4.5.4.1-2ubuntu2.1","4:4.5.4.1-2ubuntu2.1+esm2","4:4.5.4.1-2ubuntu2.1+esm3","4:4.5.4.1-2ubuntu2.1+esm4","4:4.5.4.1-2ubuntu2.1+esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"4:4.5.4.1-2ubuntu2.1+esm6","binary_name":"phpmyadmin"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}},{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/phpmyadmin@4:4.6.6-5ubuntu0.5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:4.6.6-5ubuntu0.5"}]}],"versions":["4:4.6.6-5"],"ecosystem_specific":{"binaries":[{"binary_version":"4:4.6.6-5ubuntu0.5","binary_name":"phpmyadmin"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}},{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/phpmyadmin@4:5.1.1+dfsg1-5ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:5.0.4+dfsg2-2ubuntu5","4:5.1.1+dfsg1-5ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"4:5.1.1+dfsg1-5ubuntu1","binary_name":"phpmyadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}},{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/phpmyadmin@4:5.2.1+dfsg-3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:5.2.1+dfsg-1ubuntu1","4:5.2.1+dfsg-2ubuntu1","4:5.2.1+dfsg-2ubuntu2","4:5.2.1+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_version":"4:5.2.1+dfsg-3","binary_name":"phpmyadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}},{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/phpmyadmin@4:5.2.2-really+dfsg-2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:5.2.2-really5.2.2+20250121+dfsg-1","4:5.2.2-really+dfsg-1","4:5.2.2-really+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_version":"4:5.2.2-really+dfsg-2","binary_name":"phpmyadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}},{"package":{"name":"phpmyadmin","ecosystem":"Ubuntu:26.04","purl":"pkg:deb/ubuntu/phpmyadmin@4:5.2.3+dfsg-1?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4:5.2.2-really+dfsg-2","4:5.2.3+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4:5.2.3+dfsg-1","binary_name":"phpmyadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}