{"id":"CVE-2020-10804","aliases":["CVE-2020-10804","GHSA-h65r-8fp8-w7cx","BIT-PHPMYADMIN-2020-10804"],"related":[],"kind":"vulnerability","state":"published","title":"phpMyAdmin SQL Injection","summary":"In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).","source":"cvelist"},{"lang":"es","text":"En phpMyAdmin versiones 4.x anteriores a 4.9.5 y versiones 5.x anteriores a 5.0.2, se encontró una vulnerabilidad de inyección SQL en la recuperación del nombre de usuario actual (en las bibliotecas libraries/classes/Server/Privileges.php y libraries/classes/UserPassword.php). Un usuario malicioso con acceso al servidor podría crear un nombre de usuario diseñado y luego engañar a la víctima para que realice acciones específicas con esa cuenta de usuario (tal y como editar sus privilegios).","source":"nvd"}],"published":"2020-03-22T03:47:59.000Z","modified":"2026-09-08T08:48:24.782Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.9.0","status":"affected","fixed":"4.9.5"}],"ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","purl":"pkg:composer/phpmyadmin/phpmyadmin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.2"}],"ecosystem":"Packagist","package":"phpmyadmin/phpmyadmin","purl":"pkg:composer/phpmyadmin/phpmyadmin","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.9.5"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.2"}],"vendor":"phpmyadmin","product":"phpmyadmin","cpe":"cpe:2.3:a:phpmyadmin:phpmyadmin:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"30"},{"status":"affected","version":"31"},{"status":"affected","version":"32"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"}],"vendor":"opensuse","product":"backports_sle","cpe":"cpe:2.3:a:opensuse:backports_sle:15.0:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.1"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"suse","product":"package_hub","cpe":"cpe:2.3:a:suse:package_hub:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.9.5"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.2"}],"ecosystem":"Bitnami","package":"phpmyadmin","purl":"pkg:bitnami/phpmyadmin","source":"bitnami"}],"references":[{"url":"https://www.phpmyadmin.net/security/PMASA-2020-2/","tags":["advisory","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00046.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00050.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00005.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10804","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-10804.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/phpmyadmin/composer","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO","tags":["web"],"sources":["ghsa"]},{"url":"https://www.phpmyadmin.net/security/PMASA-2020-2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-10804","url":"https://www.cve.org/CVERecord?id=CVE-2020-10804","licence":"CVE Terms of Use","modified":"2024-08-04T11:14:15.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h65r-8fp8-w7cx","url":"https://github.com/advisories/GHSA-h65r-8fp8-w7cx","licence":"CC-BY-4.0","modified":"2024-04-24T17:57:30.896Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-10804","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10804","licence":"Public domain","modified":"2026-06-17T02:48:28.023Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHPMYADMIN-2020-10804","url":"https://osv.dev/vulnerability/BIT-PHPMYADMIN-2020-10804","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.782Z"}],"updatedAt":"2026-11-25T22:57:51.595Z","epss":{"score":0.02355,"percentile":0.84195,"date":"2026-12-01T12:00:22.000Z"}}