Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-2154

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: DML). Supported versions that are affected are 5.7.33 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).

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

Source evidence

CVE-2021-2154

core-osv · Original source

Published 22 Apr 2021, 22:15 UTC

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: DML). Supported versions that are affected are 5.7.33 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).

osv:CVE-2021-2154
Complete source record
{
  "id": "ba94510d5def6e4e4069bbe67d5219d306cd13b72ee1f1f6bd84d87d35420111",
  "url": "https://osv.dev/vulnerability/CVE-2021-2154",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-2154",
    "summary": "Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: DML). Supported versions that are affected are 5.7.33 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).",
    "evidence": "osv:CVE-2021-2154",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-2154",
      "aliases": [
        "BIT-mariadb-2021-2154",
        "BIT-mariadb-min-2021-2154",
        "BIT-mysql-client-2021-2154",
        "CVE-2021-2154"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mariadb/server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9664240c948a92c22ccda0e1f5a420eb776ddcb1"
                },
                {
                  "fixed": "a20195bba5ff695b8c00b8b3f57edced3c1108a6"
                },
                {
                  "introduced": "20ae591abd0bfe1bfaee546989ee163f4ef832b1"
                },
                {
                  "fixed": "4f143a88bcb36e94e9edba8a3c5b4a350dcd9bf9"
                },
                {
                  "introduced": "c761b43451d54eeeecdf3c102906fcce88d4e9d9"
                },
                {
                  "fixed": "a4139f8d68bd31e80ff6202c093cd232c194ddfd"
                },
                {
                  "introduced": "7c7f9bef28aa566557da31402142f6dd8298ddd2"
                },
                {
                  "fixed": "3f55c569514679d98e09e71286ca28a8ac667a71"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.2.0"
                      },
                      {
                        "fixed": "10.2.38"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.3.0"
                      },
                      {
                        "fixed": "10.3.29"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.4.0"
                      },
                      {
                        "fixed": "10.4.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "10.5.0"
                      },
                      {
                        "fixed": "10.5.10"
                      }
                    ],
                    "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-2154.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-2154-05c7814c",
                "digest": {
                  "length": 1382,
                  "function_hash": "322128387529780625592402890608648572913"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_prepare.cc",
                  "function": "mysql_test_select"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-0b79189e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "8376308921794643741701672030968664939",
                    "232938431702890569967529964990510805858",
                    "156935383331326070759284374582573215374",
                    "319188585465869426447694675742810284314",
                    "195978959015672643546896046468512073720",
                    "186914805573621586770799268670423495601",
                    "184098504852850448733505618452706751503",
                    "257019084214720884159526716952479552926",
                    "208522982103125932622770522087140256483",
                    "161126447642095895822482869837686626840",
                    "260399343256022085728421119837455812260",
                    "86974682356935820809437566681831043391",
                    "323198554721651991414320781385521082385",
                    "73073261068670371719770287508748727990",
                    "328274921891070475929777568712471794870",
                    "134715197553679507358974418074540409098",
                    "161102368812016543595319424570300176101",
                    "193581079227660862907858489419856964303",
                    "9625058991100069502652877227768933890"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_derived.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-192da221",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "168544384147256645351056743036618817406",
                    "50451342659074436417376011823148259476",
                    "186318101579849850461204891639931981521",
                    "218390225894619315967716500252344584557"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_base.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-319b8344",
                "digest": {
                  "length": 913,
                  "function_hash": "94106374924971372826460142161729586423"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_derived.cc",
                  "function": "mysql_handle_single_derived"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-362ca9d2",
                "digest": {
                  "length": 597,
                  "function_hash": "294940075262138667602358936354965008942"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_base.cc",
                  "function": "open_normal_and_derived_tables"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-38cdab29",
                "digest": {
                  "length": 942,
                  "function_hash": "235753819923495502702942664180535283210"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_prepare.cc",
                  "function": "mysql_test_create_table"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-7b0b2027",
                "digest": {
                  "length": 2225,
                  "function_hash": "41437778563358113259307207121800751509"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_show.cc",
                  "function": "fill_schema_table_by_open"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-81fce179",
                "digest": {
                  "length": 1479,
                  "function_hash": "101931646880406494030966935605892683304"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_derived.cc",
                  "function": "mysql_handle_derived"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-8df0282a",
                "digest": {
                  "length": 1000,
                  "function_hash": "146040710720366585580707197404632625234"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_show.cc",
                  "function": "mysqld_list_fields"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-956391da",
                "digest": {
                  "length": 452,
                  "function_hash": "282265357197290812965726598369122592845"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_prepare.cc",
                  "function": "mysql_test_do_fields"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-9d90e26e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "25659621010009786125164404455603937145",
                    "244812572285093701929011865903861410272",
                    "135505733500033385538611137446985357365",
                    "329449124570590508714789493975010729205",
                    "171314629574034887773000597308419181797",
                    "89764016259477326958381951977404856061",
                    "334855243505824478683610057194996675696"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_class.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-a94f21ff",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "209753238693340880041535547327645207005",
                    "334070641843918206322074786894599376572",
                    "316310665983206167860018462332509291806",
                    "232548721670911873680560609057779397011",
                    "167208539937498664681683735279208545598",
                    "199585545327948560623734408763450157132",
                    "76506685930476968229085867394001919863",
                    "281172649008171803085776340743584734404"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_show.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-f4163153",
                "digest": {
                  "length": 499,
                  "function_hash": "194805658341721684859143128259654138627"
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_prepare.cc",
                  "function": "mysql_test_set_fields"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-2154-f9d6bd0f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "225110962163697236869617512016214378999",
                    "271803788401245016054311266015887247976",
                    "114628426084200241910127751388202670921",
                    "42628445176351403523529725694633223320",
                    "101225470818017190287972083985866998692",
                    "50089665062729635219130237219008110524",
                    "133595521131707003650803866502738985173",
                    "223516217828469003607440062498462692971",
                    "142072693006293248333500908379946308505",
                    "30545965552448550597052659314849753491",
                    "88667210771268085064696118079338461125",
                    "126625423290341858471048495625847257641",
                    "163916659944676181836255996539400582964",
                    "62126678808852359200323133039533474712",
                    "8645302836542464987474811482763832914",
                    "273608608288985838897703698112404943796"
                  ]
                },
                "source": "https://github.com/mariadb/server/commit/a20195bba5ff695b8c00b8b3f57edced3c1108a6",
                "target": {
                  "file": "sql/sql_prepare.cc"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:19:50Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/mysql/mysql-server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e5d189ecb9465f4be6235109dd3dbcaab01ddc53"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.7.0"
                      },
                      {
                        "last_affected": "5.7.33"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mysql-5.7.33",
            "mysql-5.7.32",
            "mysql-5.7.31",
            "mysql-5.1.4",
            "mysql-4.0.4",
            "mysql-4.0.2",
            "mysql-3.23.36",
            "mysql-3.23.33",
            "mysql-3.23.32",
            "mysql-3.23.31",
            "mysql-3.23.30-gamma",
            "mysql-3.23.28-gamma",
            "mysql-3.23.22-beta"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-2154.json"
          }
        }
      ],
      "modified": "2026-10-24T14:19:50.687573783Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPA3CTGXPVWKHMCQDVURK4ETH7GE34KK/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GAU7KW36A6TQGKG3RUITYSVUFIHBY3OT/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PEF5CRATUGQZUSQU63MHQIDZPOLHW2VE/",
        "https://security.gentoo.org/glsa/202105-27",
        "https://security.gentoo.org/glsa/202105-28",
        "https://security.netapp.com/advisory/ntap-20210513-0002/",
        "https://www.oracle.com/security-alerts/cpuapr2021.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "mariadb:mariadb",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.2.0"
                  },
                  {
                    "fixed": "10.2.38"
                  },
                  {
                    "introduced": "10.3.0"
                  },
                  {
                    "fixed": "10.3.29"
                  },
                  {
                    "introduced": "10.4.0"
                  },
                  {
                    "fixed": "10.4.19"
                  },
                  {
                    "introduced": "10.5.0"
                  },
                  {
                    "fixed": "10.5.10"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  },
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-2154",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443496,
  "published_at": "2021-04-22T22:15:12.83+00:00"
}