# CVE-2021-46657: getsortbytable in MariaDB before 10.6.2 allows an application crash via certain subquery uses of ORDER BY.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-29T22:34:28.000Z
- Modified: 2026-09-08T08:48:23.882Z
- Also known as: BIT-MARIADB-2021-46657, BIT-MARIADB-MIN-2021-46657, BIT-MYSQL-CLIENT-2021-46657
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mariadb mariadb: from 5.5.20 up to 5.5.68; from 10.0.0 before 10.2.39; from 10.3.0 before 10.3.30; from 10.4.0 before 10.4.20; from 10.5.0 before 10.5.11; from 10.6.0 before 10.6.2
- mariadb (Bitnami): from 10.0.0 before 10.2.39; from 10.3.0 before 10.3.30; from 10.4.0 before 10.4.20; from 10.5.0 before 10.5.11; from 10.6.0 before 10.6.2
- mariadb-min (Bitnami): from 10.0.0 before 10.2.39; from 10.3.0 before 10.3.30; from 10.4.0 before 10.4.20; from 10.5.0 before 10.5.11; from 10.6.0 before 10.6.2; from 5.5.20 up to 5.5.68
- mysql-client (Bitnami): from 10.0.0 before 10.2.39; from 10.3.0 before 10.3.30; from 10.4.0 before 10.4.20; from 10.5.0 before 10.5.11; from 10.6.0 before 10.6.2

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://jira.mariadb.org/browse/MDEV-25629> (exploit, advisory, issue-tracking, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220221-0002/> (advisory, third-party-advisory)
- <https://mariadb.com/kb/en/security/> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46657> (web)

## Sources

- CVE List: [CVE-2021-46657](https://www.cve.org/CVERecord?id=CVE-2021-46657), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-46657](https://nvd.nist.gov/vuln/detail/CVE-2021-46657), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MARIADB-2021-46657](https://osv.dev/vulnerability/BIT-MARIADB-2021-46657), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MARIADB-MIN-2021-46657](https://osv.dev/vulnerability/BIT-MARIADB-MIN-2021-46657), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MYSQL-CLIENT-2021-46657](https://osv.dev/vulnerability/BIT-MYSQL-CLIENT-2021-46657), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-46657 · Whole record: https://cve.day/CVE-2021-46657.json · Rebuilt by cve.day 2026-11-25T22:58:06.724Z
