Vulnerability Name:

CVE-2021-46659 (CCN-219002)

Assigned:2021-05-10
Published:2021-05-10
Updated:2022-06-30
Summary:MariaDB before 10.7.2 allows an application crash because it does not recognize that SELECT_LEX::nest_level is local to each VIEW.
CVSS v3 Severity:5.5 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
5.0 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.5 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
5.0 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.5 Medium (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
5.0 Medium (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
CVSS v2 Severity:2.1 Low (CVSS v2 Vector: AV:L/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
4.6 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:N/I:N/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Complete
Vulnerability Type:CWE-noinfo
CWE-20
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2021-46659

Source: XF
Type: UNKNOWN
mariadb-cve202146659-dos(219002)

Source: CCN
Type: MDEV-25631
Crash executing query with VIEW, aggregate and subquery

Source: MISC
Type: Exploit, Vendor Advisory
https://jira.mariadb.org/browse/MDEV-25631

Source: FEDORA
Type: Mailing List, Patch, Third Party Advisory
FEDORA-2022-03350936ee

Source: FEDORA
Type: Mailing List, Patch, Third Party Advisory
FEDORA-2022-5cfe372ab7

Source: FEDORA
Type: Mailing List, Patch, Third Party Advisory
FEDORA-2022-263f7cc483

Source: CONFIRM
Type: Release Notes, Vendor Advisory
https://mariadb.com/kb/en/security/

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20220311-0003/

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2021-46659

Vulnerable Configuration:Configuration 1:
  • cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 5.5.0 and < 10.2.42)
  • OR cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 10.3.0 and < 10.3.33)
  • OR cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 10.4.0 and < 10.4.23)
  • OR cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 10.5.0 and < 10.5.14)
  • OR cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 10.7.0 and < 10.7.2)
  • OR cpe:/a:mariadb:mariadb:*:*:*:*:*:*:*:* (Version >= 10.6.0 and < 10.6.6)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:36:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/a:redhat:enterprise_linux:9:*:*:*:*:*:*:*

  • Configuration RedHat 4:
  • cpe:/a:redhat:enterprise_linux:9::appstream:*:*:*:*:*

  • Configuration RedHat 5:
  • cpe:/a:redhat:enterprise_linux:9::crb:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:mariadb:mariadb:5.5.25:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.5.28a:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.3.11:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.2.13:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.1.66:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.1.67:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.2.14:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.3.12:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.5.29:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:5.5.54:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.0.29:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.1.21:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.2.3:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.0.33:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.1.29:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.2.9:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.4.7:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.4.11:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.1.40:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.2.30:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.3.20:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.4.14:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.5.5:*:*:*:*:*:*:*
  • OR cpe:/a:mariadb:mariadb:10.5.9:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.redhat.rhsa:def:20226443
    P
    RHSA-2022:6443: mariadb:10.3 security and bug fix update (Moderate)
    2022-09-13
    oval:com.redhat.rhsa:def:20225948
    P
    RHSA-2022:5948: galera, mariadb, and mysql-selinux security, bug fix, and enhancement update (Moderate)
    2022-08-09
    oval:com.redhat.rhsa:def:20225826
    P
    RHSA-2022:5826: mariadb:10.5 security, bug fix, and enhancement update (Moderate)
    2022-08-02
    oval:org.opensuse.security:def:3769
    P
    Security update for mariadb (Important)
    2022-07-27
    oval:org.opensuse.security:def:602
    P
    Security update for mariadb (Important)
    2022-07-27
    oval:org.opensuse.security:def:95402
    P
    Security update for mariadb (Important)
    2022-07-27
    oval:org.opensuse.security:def:3491
    P
    ft2demos-2.6.3-7.15.1 on GA media (Moderate)
    2022-06-28
    oval:org.opensuse.security:def:95121
    P
    libmariadbd-devel-10.6.7-150400.1.4 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:809
    P
    Security update for mariadb (Important)
    2022-04-29
    oval:org.opensuse.security:def:125814
    P
    Security update for mariadb (Important)
    2022-03-09
    oval:org.opensuse.security:def:6186
    P
    Security update for mariadb (Important)
    2022-03-09
    oval:org.opensuse.security:def:126977
    P
    Security update for mariadb (Important)
    2022-03-09
    oval:org.opensuse.security:def:127375
    P
    Security update for mariadb (Important)
    2022-03-09
    oval:org.opensuse.security:def:119696
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:102252
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:119134
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:1691
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:119328
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:118833
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:119511
    P
    Security update for mariadb (Important)
    2022-03-04
    oval:org.opensuse.security:def:119023
    P
    Security update for mariadb (Important)
    2022-03-04
    BACK
    mariadb mariadb *
    mariadb mariadb *
    mariadb mariadb *
    mariadb mariadb *
    mariadb mariadb *
    mariadb mariadb *
    fedoraproject fedora 34
    fedoraproject fedora 35
    fedoraproject fedora 36
    mariadb mariadb 5.5.25
    mariadb mariadb 5.5.28a
    mariadb mariadb 5.3.11
    mariadb mariadb 5.2.13
    mariadb mariadb 5.1.66
    mariadb mariadb 5.1.67
    mariadb mariadb 5.2.14
    mariadb mariadb 5.3.12
    mariadb mariadb 5.5.29
    mariadb mariadb 5.5.54
    mariadb mariadb 10.0.29
    mariadb mariadb 10.1.21
    mariadb mariadb 10.2.3
    mariadb mariadb 10.0.33
    mariadb mariadb 10.1.29
    mariadb mariadb 10.2.9
    mariadb mariadb 10.4.7
    mariadb mariadb 10.4.11
    mariadb mariadb 10.1.40
    mariadb mariadb 10.2.30
    mariadb mariadb 10.3.20
    mariadb mariadb 10.4.14
    mariadb mariadb 10.5.5
    mariadb mariadb 10.5.9