Medium
Security advisory
MariaDB through 10.5.9 allows a sql_parse.cc application crash because of incorrect used_tables expectations.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-46665
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:27 UTC · Revision 1
Source evidence
MariaDB through 10.5.9 allows a sql_parse.cc application crash because of incorrect used_tables expectations.
osv:CVE-2021-46665
Complete source record
{
"id": "0f82626730d331509712eface8fab2c5528514d8b5f2045920385bef388f5791",
"url": "https://osv.dev/vulnerability/CVE-2021-46665",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-46665",
"summary": "MariaDB through 10.5.9 allows a sql_parse.cc application crash because of incorrect used_tables expectations.",
"evidence": "osv:CVE-2021-46665",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-46665",
"aliases": [
"BIT-mariadb-2021-46665",
"BIT-mariadb-min-2021-46665",
"BIT-mysql-client-2021-46665",
"CVE-2021-46665"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mariadb/server",
"type": "GIT",
"events": [
{
"introduced": "9664240c948a92c22ccda0e1f5a420eb776ddcb1"
},
{
"fixed": "3a52569499e2f0c4d1f25db1e81617a9d9755400"
},
{
"introduced": "20ae591abd0bfe1bfaee546989ee163f4ef832b1"
},
{
"fixed": "a36fc80aeb3f835fad02f443d65dc608b74b92d1"
},
{
"introduced": "c761b43451d54eeeecdf3c102906fcce88d4e9d9"
},
{
"fixed": "b4477ae73c836592268f7fb231eeb38a4fa83bb6"
},
{
"introduced": "7c7f9bef28aa566557da31402142f6dd8298ddd2"
},
{
"fixed": "9aa3564e8a06c3d2027fc514213ecf42b049b06e"
},
{
"introduced": "1a647b700f6b72dc97211510a5d0c647d5d3d911"
},
{
"fixed": "e3894f5d397722dd50fb91dbbdbad3aaf017a4b0"
},
{
"introduced": "0"
},
{
"fixed": "65f602310c4ea086488bfaa50f36952162541a8c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.2.0"
},
{
"fixed": "10.2.43"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.3.0"
},
{
"fixed": "10.3.34"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.4.0"
},
{
"fixed": "10.4.24"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.5.0"
},
{
"fixed": "10.5.15"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.6.0"
},
{
"fixed": "10.6.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.7.0"
},
{
"fixed": "10.7.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"mariadb-10.6.5",
"mariadb-10.4.20",
"mariadb-10.7.2",
"mariadb-10.5.14",
"mariadb-10.4.23",
"mariadb-10.3.33",
"mariadb-10.2.42",
"mariadb-10.6.6",
"mariadb-10.7.1",
"mariadb-10.5.13",
"mariadb-10.4.22",
"mariadb-10.5.12",
"mariadb-10.4.21",
"mariadb-10.6.4",
"mariadb-10.3.31",
"mariadb-10.2.40",
"mariadb-10.6.3",
"mariadb-10.5.11",
"mariadb-10.3.30",
"mariadb-10.6.2",
"mariadb-10.2.39",
"mariadb-10.6.1",
"mariadb-10.6.0",
"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-46665.json",
"vanir_signatures": [
{
"id": "CVE-2021-46665-84206f5b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"98111117393566517679651759304023085372",
"304938594711446698139907843226650211733",
"276479549989744167816865099922120078879",
"270219840002247898028875582953023464708"
]
},
"source": "https://github.com/mariadb/server/commit/3a52569499e2f0c4d1f25db1e81617a9d9755400",
"target": {
"file": "sql/sql_lex.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-46665-d4dba36e",
"digest": {
"length": 1922,
"function_hash": "165020614219671822891384418769980927498"
},
"source": "https://github.com/mariadb/server/commit/3a52569499e2f0c4d1f25db1e81617a9d9755400",
"target": {
"file": "sql/sql_lex.cc",
"function": "st_select_lex::optimize_unflattened_subqueries"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:31:39Z"
}
}
],
"modified": "2026-10-24T14:31:39.776564834Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/",
"https://security.netapp.com/advisory/ntap-20220221-0002/",
"https://jira.mariadb.org/browse/MDEV-25636",
"https://mariadb.com/kb/en/security/"
],
"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.43"
},
{
"introduced": "10.3.0"
},
{
"fixed": "10.3.34"
},
{
"introduced": "10.4.0"
},
{
"fixed": "10.4.24"
},
{
"introduced": "10.5.0"
},
{
"fixed": "10.5.15"
},
{
"introduced": "10.6.0"
},
{
"fixed": "10.6.7"
},
{
"introduced": "10.7.0"
},
{
"fixed": "10.7.3"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "34"
},
{
"last_affected": "34"
},
{
"introduced": "35"
},
{
"last_affected": "35"
},
{
"introduced": "36"
},
{
"last_affected": "36"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-46665",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443769,
"published_at": "2022-02-01T02:15:06.977+00:00"
}