# CVE-2021-46662: MariaDB through 10.5.9 allows a setvar.cc application crash via certain uses of an UPDATE statement in conjunction with a nested subquery.

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

## Description

MariaDB through 10.5.9 allows a set_var.cc application crash via certain uses of an UPDATE statement in conjunction with a nested subquery.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mariadb mariadb: from 10.3.0 before 10.3.32; from 10.4.0 before 10.4.22; from 10.5.0 before 10.5.13; from 10.6.0 before 10.6.5
- mariadb (Bitnami): from 10.3.0 before 10.3.32; from 10.4.0 before 10.4.22; from 10.5.0 before 10.5.13; from 10.6.0 before 10.6.5
- mariadb-min (Bitnami): from 10.3.0 before 10.3.32; from 10.4.0 before 10.4.22; from 10.5.0 before 10.5.13; from 10.6.0 before 10.6.5
- mysql-client (Bitnami): from 10.3.0 before 10.3.32; from 10.4.0 before 10.4.22; from 10.5.0 before 10.5.13; from 10.6.0 before 10.6.5

## 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-25637> (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://nvd.nist.gov/vuln/detail/CVE-2021-46662> (web)

## Sources

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

---

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