{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "10.2.39"
              },
              {
                "introduced": "10.3.0"
              },
              {
                "fixed": "10.3.30"
              },
              {
                "introduced": "10.4.0"
              },
              {
                "fixed": "10.4.20"
              },
              {
                "introduced": "10.5.0"
              },
              {
                "fixed": "10.5.11"
              },
              {
                "introduced": "10.6.0"
              },
              {
                "fixed": "10.6.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "dfa2d0bc13362b949b1b1699955583f74e7db90a"
            },
            {
              "introduced": "20ae591abd0bfe1bfaee546989ee163f4ef832b1"
            },
            {
              "fixed": "75a65d3201a4486af96cf3277b6c5a4ba460eef7"
            },
            {
              "introduced": "c761b43451d54eeeecdf3c102906fcce88d4e9d9"
            },
            {
              "fixed": "c7ee039d36f69f24fb3b1c422fcff8dbf974e3eb"
            },
            {
              "introduced": "7c7f9bef28aa566557da31402142f6dd8298ddd2"
            },
            {
              "fixed": "dc82effa5df5e59be6c7de4038f0a832f37d9bdc"
            },
            {
              "introduced": "1a647b700f6b72dc97211510a5d0c647d5d3d911"
            },
            {
              "fixed": "59cf1a8a8ad07add11ea9a55ebb15828d3d99196"
            }
          ],
          "repo": "https://github.com/mariadb/server",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "MariaDB before 10.6.2 allows an application crash because of mishandling of a pushdown from a HAVING clause to a WHERE clause.",
  "id": "CVE-2021-46666",
  "modified": "2026-03-13T21:50:00.690989554Z",
  "published": "2022-02-01T02:15:07.027Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://security.netapp.com/advisory/ntap-20220221-0002/"
    },
    {
      "type": "REPORT",
      "url": "https://jira.mariadb.org/browse/MDEV-25635"
    },
    {
      "type": "FIX",
      "url": "https://mariadb.com/kb/en/security/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}