Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-27928

A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL. An untrusted search path leads to eval injection, in which a database SUPER user can execute OS commands after modifying wsrep_provider and wsrep_notify_cmd. NOTE: this does not affect an Oracle product.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-27928
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:29 UTC · Revision 1

Source evidence

CVE-2021-27928

core-osv · Original source

Published 19 Mar 2021, 03:15 UTC

A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL. An untrusted search path leads to eval injection, in which a database SUPER user can execute OS commands after modifying wsrep_provider and wsrep_notify_cmd. NOTE: this does not affect an Oracle product.

osv:CVE-2021-27928
Complete source record
{
  "id": "536e7fc805da778f0f30e6b2f4b19611a60b63f3f81a321b5375b242f4960c30",
  "url": "https://osv.dev/vulnerability/CVE-2021-27928",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-27928",
    "summary": "A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.9; Percona Server through 2021-03-03; and the wsrep patch through 2021-03-03 for MySQL. An untrusted search path leads to eval injection, in which a database SUPER user can execute OS commands after modifying wsrep_provider and wsrep_notify_cmd. NOTE: this does not affect an Oracle product.",
    "evidence": "osv:CVE-2021-27928",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-27928",
      "aliases": [
        "BIT-mariadb-2021-27928",
        "BIT-mariadb-min-2021-27928",
        "BIT-mysql-client-2021-27928",
        "CVE-2021-27928"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mariadb/server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9664240c948a92c22ccda0e1f5a420eb776ddcb1"
                },
                {
                  "fixed": "ce3a2a688db556d8d077a409fd9bf5cc013d13dd"
                },
                {
                  "introduced": "20ae591abd0bfe1bfaee546989ee163f4ef832b1"
                },
                {
                  "fixed": "0d55b020e16fb0ab88547a28a22cb58eaa7fb229"
                },
                {
                  "introduced": "c761b43451d54eeeecdf3c102906fcce88d4e9d9"
                },
                {
                  "fixed": "53123dfa3e365138591fd2f160c6057aca00a3e6"
                },
                {
                  "introduced": "7c7f9bef28aa566557da31402142f6dd8298ddd2"
                },
                {
                  "fixed": "3a8ca9096ea82ca61811450775511533d6cb1bb4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.2"
                      },
                      {
                        "fixed": "10.2.37"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.3"
                      },
                      {
                        "fixed": "10.3.28"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.4"
                      },
                      {
                        "fixed": "10.4.18"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.5"
                      },
                      {
                        "fixed": "10.5.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mariadb-10.3.26",
            "mariadb-10.5.4",
            "mariadb-10.2.27",
            "mariadb-10.3.21",
            "mariadb-10.2.13",
            "mariadb-10.5.2",
            "mariadb-10.3.16",
            "mariadb-10.2.31",
            "mariadb-10.3.17",
            "mariadb-10.3.10",
            "mariadb-10.4.11",
            "mariadb-10.2.30",
            "mariadb-10.5.0",
            "mariadb-10.4.10",
            "mariadb-10.3.20",
            "mariadb-10.2.29",
            "mariadb-10.4.9",
            "mariadb-10.3.19",
            "mariadb-10.2.28",
            "mariadb-10.3.18",
            "mariadb-10.4.7",
            "mariadb-10.2.26",
            "mariadb-10.2.25",
            "mariadb-10.2.24",
            "mariadb-10.4.5",
            "mariadb-10.4.4",
            "mariadb-10.2.23",
            "mariadb-10.4.3",
            "mariadb-10.2.22",
            "mariadb-10.3.12",
            "mariadb-10.2.21",
            "mariadb-10.2.20",
            "mariadb-10.2.19",
            "mariadb-10.2.18",
            "mariadb-10.2.16",
            "mariadb-10.3.7",
            "mariadb-10.2.15",
            "mariadb-10.3.6",
            "mariadb-10.2.14",
            "mariadb-10.3.5",
            "mariadb-10.3.4",
            "mariadb-10.2.12",
            "mariadb-10.2.11",
            "mariadb-10.2.10",
            "mariadb-10.3.2",
            "mariadb-10.3.1",
            "mariadb-10.2.5",
            "mariadb-10.3.0",
            "mariadb-10.2.2",
            "mariadb-10.2.1",
            "mariadb-10.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27928.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-27928-12557ed7",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "11425847502652849095417483971976726008",
                    "261028279744089143798832603799308744238",
                    "43178024023802145260950392730019310797",
                    "27426614060501693274586081300902699324",
                    "229288027330135542901329756108569736754",
                    "217226131754073329819203145638391009690",
                    "139208019122387927948352969887811226188",
                    "12732217612013947819634176605299937141"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/ce3a2a688db556d8d077a409fd9bf5cc013d13dd",
                "target": {
                  "file": "sql/sys_vars.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:51:06Z"
          }
        }
      ],
      "modified": "2026-10-24T14:51:06.054006036Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2021/03/msg00028.html",
        "https://mariadb.com/kb/en/mariadb-10237-release-notes/",
        "https://mariadb.com/kb/en/mariadb-10328-release-notes/",
        "https://mariadb.com/kb/en/mariadb-10418-release-notes/",
        "https://mariadb.com/kb/en/mariadb-1059-release-notes/",
        "https://mariadb.com/kb/en/security/",
        "https://security.gentoo.org/glsa/202105-28",
        "https://jira.mariadb.org/browse/MDEV-25179"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:galeracluster:wsrep:*:*:*:*:*:mysql:*:*"
            ],
            "vendor_product": "galeracluster:wsrep",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2021-03-03"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "mariadb:mariadb",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.2"
                  },
                  {
                    "fixed": "10.2.37"
                  },
                  {
                    "introduced": "10.3"
                  },
                  {
                    "fixed": "10.3.28"
                  },
                  {
                    "introduced": "10.4"
                  },
                  {
                    "fixed": "10.4.18"
                  },
                  {
                    "introduced": "10.5"
                  },
                  {
                    "fixed": "10.5.9"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:percona:percona_server:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "percona:percona_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2021-03-03"
                  },
                  {
                    "last_affected": "2021-03-03"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-27928",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443860,
  "published_at": "2021-03-19T03:15:12.427+00:00"
}