Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-46657

mariadb: Crash in get_sort_by_table() in subquery with ORDER BY having outer ref

Overview

Published
29 Jan 2022
Modified
17 Jun 2026
Medium CVE
3 Registry packages
72 OS packages
8 Linux distributions
Yes Fix available

Description

get_sort_by_table in MariaDB before 10.6.2 allows an application crash via certain subquery uses of ORDER BY.

Source: OX vulnerability database

Severity

5.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected packages · 3

Packages affected by CVE-2021-46657
EcosystemPackageVulnerableFixed in
Bitnami mariadb >=10.0.0, <10.2.39>=10.3.0, <10.3.30>=10.4.0, <10.4.20>=10.5.0, <10.5.11>=10.6.0, <10.6.2 10.2.3910.3.3010.4.2010.5.1110.6.2
Bitnami mariadb-min >=10.0.0, <10.2.39>=10.3.0, <10.3.30>=10.4.0, <10.4.20>=10.5.0, <10.5.11>=10.6.0, <10.6.2+1 more 10.2.3910.3.3010.4.2010.5.1110.6.2
Bitnami mysql-client >=10.0.0, <10.2.39>=10.3.0, <10.3.30>=10.4.0, <10.4.20>=10.5.0, <10.5.11>=10.6.0, <10.6.2 10.2.3910.3.3010.4.2010.5.1110.6.2

Open a package to see all its vulnerabilities.

Operating systems · 41 fixes

Oracle Linux 1 release · 3 packages

fixed 3
judy galera mariadb
Oracle Linux fixes for CVE-2021-46657
ReleasePackageFixed in
8 judy 1.0.5-18.0.1.module+el8.3.0+9616+7a81225f
8 galera 26.4.9-4.module+el8.5.0+20630+d7805586
8 mariadb +13 3:10.5.13-1.module+el8.5.0+20630+d7805586

Red Hat 3 releases · 7 packages

eol 1 fixed 16
mariadb rh-mariadb103-galera rh-mariadb105-galera rh-mariadb103-mariadb rh-mariadb105-mariadb judy +1
Red Hat fixes for CVE-2021-46657
ReleasePackageFixed inAdvisory
7 mariadb +12 eol —
7 rh-mariadb103-galera 0:25.3.34-4.el7 RHSA-2022:1010
7 rh-mariadb105-galera 0:26.4.9-3.el7 RHSA-2022:1007
7 rh-mariadb103-mariadb +18 3:10.3.32-2.el7 RHSA-2022:1010
7 rh-mariadb105-mariadb +20 3:10.5.13-1.el7 RHSA-2022:1007
8 (mariadb:10.3) judy 0:1.0.5-18.module+el8+2765+cfa4f87b RHSA-2022:1556

11 more rows

SUSE Linux Enterprise 2 releases · 2 packages

fixed 2
mariadb libmariadbd-devel
SUSE Linux Enterprise fixes for CVE-2021-46657
ReleasePackageFixed inAdvisory
12.5 mariadb +3 10.2.43-3.47.1 SUSE-SU-2022:0782-1
15.4 libmariadbd-devel +5 10.6.8-150400.3.7.1 SUSE-SU-2022:2561-1

alma 2 releases · 3 packages

fixed 6
judy galera mariadb
alma fixes for CVE-2021-46657
ReleasePackageFixed in
8 (mariadb:10.3) judy 1.0.5-18.module_el8.5.0+2632+14ced695
8 (mariadb:10.3) galera 25.3.34-4.module_el8.5.0+2632+14ced695
8 (mariadb:10.3) mariadb +12 3:10.3.32-2.module_el8.5.0+2632+14ced695
8 (mariadb:10.5) judy 1.0.5-18.module_el8.5.0+2637+d11efe18
8 (mariadb:10.5) galera 26.4.9-4.module_el8.5.0+2637+d11efe18
8 (mariadb:10.5) mariadb +13 3:10.5.13-1.module_el8.5.0+2637+d11efe18

debian 2 releases · 2 packages

fixed 2
mariadb-10-3 mariadb-10-5
debian fixes for CVE-2021-46657
ReleasePackageFixed in
10 mariadb-10-3 1:10.3.31-0+deb10u1
11 mariadb-10-5 1:10.5.11-1

openSUSE 1 release · 1 package

fixed 1
libmariadbd-devel
openSUSE fixes for CVE-2021-46657
ReleasePackageFixed inAdvisory
Tumbleweed libmariadbd-devel +9 10.7.3-1.1 openSUSE-SU-2024:11867-1

rocky 2 releases · 3 packages

fixed 9
galera mariadb judy
rocky fixes for CVE-2021-46657
ReleasePackageFixed in
8 galera 25.3.34-4.module+el8.5.0+777+18007c86
8 galera 26.4.9-4.module+el8.5.0+773+f75e97f7
8 mariadb +12 3:10.3.32-2.module+el8.5.0+777+18007c86
8 mariadb +13 3:10.5.13-1.module+el8.5.0+773+f75e97f7
8 (mariadb:10.3) judy 1.0.5-18.module+el8.4.0+427+adf35707
8 (mariadb:10.3) galera 25.3.34-4.module+el8.5.0+777+18007c86

3 more rows

root.io debian 1 release · 1 package

fixed 1
rootio-mariadb-10-5
root.io debian fixes for CVE-2021-46657
ReleasePackageFixed in
11 rootio-mariadb-10-5 1:10.5.11-1

References

Show all 59 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.