Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-29625

Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-29625
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:16 UTC · Revision 1

Source evidence

CVE-2021-29625

core-osv · Original source

Published 19 May 2021, 22:15 UTC

Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).

osv:CVE-2021-29625
Complete source record
{
  "id": "cee51fd72ccb84d6815963fa5308a71d849643e6bbd86180dc41215d1e446f02",
  "url": "https://osv.dev/vulnerability/CVE-2021-29625",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-29625",
    "summary": "Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).",
    "evidence": "osv:CVE-2021-29625",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-29625",
      "aliases": [
        "CVE-2021-29625",
        "GHSA-2v82-5746-vwqc"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/vrana/adminer",
              "type": "GIT",
              "events": [
                {
                  "introduced": "800fbb9b9e4a617a94307a2e83cca85c871c0fbd"
                },
                {
                  "fixed": "1f173e18bdf0be29182e0d67989df56eadea4754"
                },
                {
                  "fixed": "4043092ec2c0de2258d60a99d0c5958637d051a7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.6.1"
                      },
                      {
                        "fixed": "4.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4043092ec2c0de2258d60a99d0c5958637d051a7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.8.0",
            "v4.7.9",
            "v4.7.8",
            "v4.7.7",
            "v4.7.5",
            "v4.7.4",
            "v4.7.3",
            "v4.7.2",
            "v4.7.1",
            "v4.7.0",
            "v4.6.3",
            "v4.6.2",
            "v4.6.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29625.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:43.523101566Z",
      "provider": "osv",
      "references": [
        "https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7",
        "https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc",
        "https://sourceforge.net/p/adminer/bugs-and-features/797/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-29625",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384544,
  "published_at": "2021-05-19T22:15:07.903+00:00"
}