{"schemaVersion":3,"id":"CVE-2020-5504","aliases":["MGASA-2020-0033","UBUNTU-CVE-2020-5504","DEBIAN-CVE-2020-5504","DLA-2060-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-01-09T21:56:22.000Z","modified":"2025-04-16T14:13:38.775Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.39036,"percentile":0.98582,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.2579999999999971,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.38778},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.39036,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.39036,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.39036,"percentile":0.98582}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.38778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.39036,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.39036,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.39036,"percentile":0.98582}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_54559F6A069A8CEF","name":"Exploit Reference (cybersecurityworks.com)","source":"reference","url":"https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"52451","name":"phpMyAdmin 5.0.0 - SQL Injection","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52451","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/52451.txt","codes":["CVE-2020-5504"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"debian","product":"phpmyadmin","name":"phpmyadmin","label":"phpmyadmin","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/phpmyadmin","purlType":"deb","versions":[{"text":"< 4:4.9.4+dfsg1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 4:4.2.12-2+deb8u8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4:4.9.4+dfsg1-1 | < 4:4.2.12-2+deb8u8","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"phpmyadmin","name":"phpmyadmin","label":"phpmyadmin","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/phpmyadmin","purlType":"deb","versions":[{"text":"< 4:4.5.4.1-2ubuntu2.1+esm6","noFixRecorded":false,"fixedIn":null},{"text":"< 4:4.6.6-5ubuntu0.5","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 4:4.5.4.1-2ubuntu2.1+esm6 | < 4:4.6.6-5ubuntu0.5 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"mageia","product":"phpmyadmin","name":"phpmyadmin","label":"phpmyadmin","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/phpmyadmin","purlType":"rpm","versions":[{"text":"< 4.9.4-1.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.9.4-1.mga7","eol":null,"hubHref":null},{"vendor":"phpmyadmin","product":"phpmyadmin","name":"phpMyAdmin","label":"phpmyadmin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.9.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.9.4 | ≥ 5.0.0, < 5.0.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"phpmyadmin","label":"phpMyAdmin","category":"server-app"}},"hubHref":"/vendor/phpmyadmin/phpmyadmin"},{"vendor":"suse","product":"suse_linux_enterprise_server","name":"suse linux enterprise server","label":"suse_linux_enterprise_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"12","noFixRecorded":false,"fixedIn":null}],"versionsText":"12","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"sles","label":"SUSE Linux Enterprise Server","category":"os"}},"hubHref":"/vendor/suse/suse_linux_enterprise_server"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.phpmyadmin.net/security/PMASA-2020-1/","label":"www.phpmyadmin.net/security/PMASA-2020-1/","hostname":"www.phpmyadmin.net","tags":["WEB","REPORT","Patch","Vendor Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html","label":"lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/01/msg00011.html","label":"lists.debian.org/debian-lts-announce/2020/01/msg00011.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html","label":"cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html","hostname":"cybersecurityworks.com","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md","label":"github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md","hostname":"github.com","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2020-0033.html","label":"advisories.mageia.org/MGASA-2020-0033.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=26036","label":"bugs.mageia.org/show_bug.cgi?id=26036","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/","label":"www.phpmyadmin.net/news/2020/1/8/phpmyadmin-494-and-501-are-released/","hostname":"www.phpmyadmin.net","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2020-5504","label":"ubuntu.com/security/CVE-2020-5504","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/phpmyadmin/phpmyadmin/commit/c86acbf3ed49f69cf38b31879886dd5eb86b6983","label":"github.com/phpmyadmin/phpmyadmin/commit/c86acbf3ed49f69cf38b31879886dd5eb86b6983","hostname":"github.com","tags":["REPORT"]},{"url":"https://gist.github.com/ibennetch/4c1b701f4b766e4dd5556e8e26200b6b","label":"gist.github.com/ibennetch/4c1b701f4b766e4dd5556e8e26200b6b","hostname":"gist.github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4639-1","label":"ubuntu.com/security/notices/USN-4639-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4843-1","label":"ubuntu.com/security/notices/USN-4843-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-5504","label":"www.cve.org/CVERecord?id=CVE-2020-5504","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-5504","label":"security-tracker.debian.org/tracker/CVE-2020-5504","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2020:0056-1","OPENSUSE-SU-2024:11171-1","USN-4639-1","USN-4843-1"],"duplicates":[],"related":["OPENSUSE-SU-2020:0056-1","OPENSUSE-SU-2024:11171-1","USN-4639-1","USN-4843-1"]},"timeline":[{"kind":"published","date":"2020-01-09T21:56:22.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-16T14:13:38.775Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":53,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:23:26.790Z","stale":false,"partial":false}}