# CVE-2021-46665: MariaDB through 10.5.9 allows a sqlparse.cc application crash because of incorrect usedtables expectations.

- 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.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-01T01:47:15.000Z
- Modified: 2026-09-08T08:48:23.934Z
- Also known as: BIT-MARIADB-2021-46665, BIT-MARIADB-MIN-2021-46665, BIT-MYSQL-CLIENT-2021-46665
- Assigned by: mitre

## Description

MariaDB through 10.5.9 allows a sql_parse.cc application crash because of incorrect used_tables expectations.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mariadb mariadb: from 10.2.0 before 10.2.43; from 10.3.0 before 10.3.34; from 10.4.0 before 10.4.24; from 10.5.0 before 10.5.15; from 10.6.0 before 10.6.7; from 10.7.0 before 10.7.3
- fedoraproject fedora: 34; 35; 36
- mariadb (Bitnami): from 10.2.0 before 10.2.43; from 10.3.0 before 10.3.34; from 10.4.0 before 10.4.24; from 10.5.0 before 10.5.15; from 10.6.0 before 10.6.7; from 10.7.0 before 10.7.3
- mariadb-min (Bitnami): from 10.2.0 before 10.2.43; from 10.3.0 before 10.3.34; from 10.4.0 before 10.4.24; from 10.5.0 before 10.5.15; from 10.6.0 before 10.6.7; from 10.7.0 before 10.7.3
- mysql-client (Bitnami): from 10.2.0 before 10.2.43; from 10.3.0 before 10.3.34; from 10.4.0 before 10.4.24; from 10.5.0 before 10.5.15; from 10.6.0 before 10.6.7; from 10.7.0 before 10.7.3

## 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-25636> (exploit, advisory, issue-tracking, 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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46665> (web)

## Sources

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

---

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