Skip to content
Heist/ feed
Back to feed
HighFix available

phpmyadmin — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2020-5504

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.

Products
phpmyadmin
Affected 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, 4:4.6.6-5, 4:5.0.4+dfsg2-2ubuntu5, 4:5.1.1+dfsg1-5ubuntu1, 4:5.2.1+dfsg-1ubuntu1, 4:5.2.1+dfsg-2ubuntu1, 4:5.2.1+dfsg-2ubuntu2, 4:5.2.1+dfsg-3, 4:5.2.2-really+dfsg-1, 4:5.2.2-really+dfsg-2, 4:5.2.2-really5.2.2+20250121+dfsg-1, 4:5.2.3+dfsg-1, 4:5.2.4~dev~git20260809.e0909b211b+dfsg-1
Fixed versions
4:4.5.4.1-2ubuntu2.1+esm6, 4:4.6.6-5ubuntu0.5
CVEs
CVE-2020-5504
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2020-5504

core-osv · Original source

Published 9 Jan 2020, 22:15 UTC

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.

osv:UBUNTU-CVE-2020-5504

phpmyadmin

Fixed versions: 4:4.5.4.1-2ubuntu2.1+esm6

phpmyadmin

Fixed versions: 4:4.6.6-5ubuntu0.5

phpmyadmin

Fixed versions: Not specified

phpmyadmin

Fixed versions: Not specified

phpmyadmin

Fixed versions: Not specified

phpmyadmin

Fixed versions: Not specified

phpmyadmin

Fixed versions: Not specified

Complete source record
{
  "id": "c8aa49c816fbb8039b6bd85b67a4554463822d81160f1f3b61cbcd41a97bbed1",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-5504",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2020-5504",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2020-5504",
    "products": [
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4:4.5.4.1-2ubuntu2.1+esm6",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4:4.4.13.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.0.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.3.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2.1+esm2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2.1+esm3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2.1+esm4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4:4.5.4.1-2ubuntu2.1+esm5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4:4.6.6-5ubuntu0.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4:4.6.6-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4:5.0.4+dfsg2-2ubuntu5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4:5.1.1+dfsg1-5ubuntu1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4:5.2.1+dfsg-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4:5.2.1+dfsg-2ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4:5.2.1+dfsg-2ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4:5.2.1+dfsg-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4:5.2.2-really5.2.2+20250121+dfsg-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4:5.2.2-really+dfsg-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4:5.2.2-really+dfsg-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4:5.2.3+dfsg-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4:5.2.4~dev~git20260809.e0909b211b+dfsg-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "phpmyadmin",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4:5.2.2-really+dfsg-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4:5.2.3+dfsg-1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2020-5504",
      "aliases": [
        "UBUNTU-CVE-2020-5504"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4:4.5.4.1-2ubuntu2.1+esm6"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:4.5.4.1-2ubuntu2.1+esm6"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4:4.6.6-5ubuntu0.5"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "4:4.6.6-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:4.6.6-5ubuntu0.5"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4:5.0.4+dfsg2-2ubuntu5",
            "4:5.1.1+dfsg1-5ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:5.1.1+dfsg1-5ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:5.2.1+dfsg-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:5.2.2-really+dfsg-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4:5.2.3+dfsg-1",
            "4:5.2.4~dev~git20260809.e0909b211b+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:5.2.4~dev~git20260809.e0909b211b+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "phpmyadmin",
            "purl": "pkg:deb/ubuntu/phpmyadmin?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4:5.2.2-really+dfsg-2",
            "4:5.2.3+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5504.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "phpmyadmin",
                "binary_version": "4:5.2.3+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:53.838345211Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-5504"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2020-5504",
        "https://github.com/phpmyadmin/phpmyadmin/commit/c86acbf3ed49f69cf38b31879886dd5eb86b6983",
        "https://gist.github.com/ibennetch/4c1b701f4b766e4dd5556e8e26200b6b",
        "https://www.phpmyadmin.net/security/PMASA-2020-1/",
        "https://ubuntu.com/security/notices/USN-4639-1",
        "https://ubuntu.com/security/notices/USN-4843-1",
        "https://www.cve.org/CVERecord?id=CVE-2020-5504"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-5504",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354251,
  "published_at": "2020-01-09T22:15:00+00:00"
}