MariaDB through 10.5.9 allows an application crash via certain long SELECT DISTINCT statements that improperly interact with storage-engine resource limitations for temporary data structures.
{
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "34"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "35"
}
]
},
{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "36"
}
]
}
]
}{
"source": "CPE_FIELD",
"cpe": "cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"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"
}
]
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-46668.json"
"2026-04-12T05:16:05Z"
[
{
"signature_version": "v1",
"source": "https://github.com/mariadb/server/commit/3a52569499e2f0c4d1f25db1e81617a9d9755400",
"id": "CVE-2021-46668-84206f5b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"98111117393566517679651759304023085372",
"304938594711446698139907843226650211733",
"276479549989744167816865099922120078879",
"270219840002247898028875582953023464708"
]
},
"deprecated": false,
"target": {
"file": "sql/sql_lex.cc"
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://github.com/mariadb/server/commit/3a52569499e2f0c4d1f25db1e81617a9d9755400",
"id": "CVE-2021-46668-d4dba36e",
"digest": {
"function_hash": "165020614219671822891384418769980927498",
"length": 1922.0
},
"deprecated": false,
"target": {
"function": "st_select_lex::optimize_unflattened_subqueries",
"file": "sql/sql_lex.cc"
},
"signature_type": "Function"
}
]