# CVE-2021-46658: savewindowfunctionvalues in MariaDB before 10.6.3 allows an application crash because of incorrect handling of withwindowfunc=true for a su…

- 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.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-29T22:34:16.000Z
- Modified: 2026-09-08T08:48:23.914Z
- Also known as: BIT-MARIADB-2021-46658, BIT-MARIADB-MIN-2021-46658, BIT-MYSQL-CLIENT-2021-46658
- Assigned by: mitre

## Description

save_window_function_values in MariaDB before 10.6.3 allows an application crash because of incorrect handling of with_window_func=true for a subquery.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mariadb mariadb: from 10.2.0 before 10.2.40; from 10.3.0 before 10.3.31; from 10.4.0 before 10.4.21; from 10.5.0 before 10.5.12; from 10.6.0 before 10.6.3
- mariadb (Bitnami): from 10.2.0 before 10.2.40; from 10.3.0 before 10.3.31; from 10.4.0 before 10.4.21; from 10.5.0 before 10.5.12; from 10.6.0 before 10.6.3
- mariadb-min (Bitnami): from 10.2.0 before 10.2.40; from 10.3.0 before 10.3.31; from 10.4.0 before 10.4.21; from 10.5.0 before 10.5.12; from 10.6.0 before 10.6.3
- mysql-client (Bitnami): from 10.2.0 before 10.2.40; from 10.3.0 before 10.3.31; from 10.4.0 before 10.4.21; from 10.5.0 before 10.5.12; from 10.6.0 before 10.6.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-25630> (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-46658> (web)

## Sources

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

---

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