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-46662

mariadb: Crash in set_var.cc via certain UPDATE queries with nested subqueries

Overview

Published
1 Feb 2022
Modified
17 Jun 2026
Medium CVE
3 Registry packages
93 OS packages
9 Linux distributions
Yes Fix available

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.

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-46662
EcosystemPackageVulnerableFixed in
Bitnami mariadb >=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.3.3210.4.2210.5.1310.6.5
Bitnami mariadb-min >=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.3.3210.4.2210.5.1310.6.5
Bitnami mysql-client >=10.3.0, <10.3.32>=10.4.0, <10.4.22>=10.5.0, <10.5.13>=10.6.0, <10.6.5 10.3.3210.4.2210.5.1310.6.5

Open a package to see all its vulnerabilities.

Operating systems · 46 fixes

Oracle Linux 1 release · 3 packages

fixed 3
judy galera mariadb
Oracle Linux fixes for CVE-2021-46662
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 4 releases · 7 packages

eol 1 fixed 16 affected 1
mariadb rh-mariadb103-galera rh-mariadb105-galera rh-mariadb103-mariadb rh-mariadb105-mariadb judy +1
Red Hat fixes for CVE-2021-46662
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

12 more rows

alma 2 releases · 3 packages

fixed 6
judy galera mariadb
alma fixes for CVE-2021-46662
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

alpine 4 releases · 1 package

fixed 4
mariadb
alpine fixes for CVE-2021-46662
ReleasePackageFixed in
3.22 mariadb 10.6.7-r0
3.23 mariadb 10.6.7-r0
3.24 mariadb 10.6.7-r0
edge mariadb 10.6.7-r0

amazon linux 1 release · 1 package

fixed 1
mariadb105
amazon linux fixes for CVE-2021-46662
ReleasePackageFixed in
2023 mariadb105 +27 3:10.5.16-1.amzn2023.0.7

debian 2 releases · 2 packages

fixed 2
mariadb-10-3 mariadb-10-5
debian fixes for CVE-2021-46662
ReleasePackageFixed in
10 mariadb-10-3 1:10.3.34-0+deb10u1
11 mariadb-10-5 1:10.5.15-0+deb11u1

rocky 2 releases · 3 packages

fixed 9
galera mariadb judy
rocky fixes for CVE-2021-46662
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-46662
ReleasePackageFixed in
11 rootio-mariadb-10-5 1:10.5.15-0+deb11u1

ubuntu 2 releases · 1 package

fixed 2
mariadb-10-3
ubuntu fixes for CVE-2021-46662
ReleasePackageFixed in
20.04 mariadb-10-3 1:10.3.34-0ubuntu0.20.04.1
20.04-ESM mariadb-10-3 1:10.3.34-0ubuntu0.20.04.1

References

Show all 60 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.