CVE-2021-46659: MariaDB before 10.7.2 allows an application crash because it does not recognize that SELECT_LEX::nest_level is local to each VIEW.
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.54% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: galera (AlmaLinux:8) 26.4.11-1.module_el8.6.0+3072+3c630e87, 25.3.35-1.module_el8.6.0+3265+230ed96b; Judy (AlmaLinux:8) 1.0.5-18.module_el8.6.0+3139+3c630e87, 1.0.5-18.module_el8.6.0+3072+3c630e87; mariadb (AlmaLinux:8) 3:10.5.16-2.module_el8.6.0+3072+3c630e87, 3:10.3.35-1.module_el8.6.0+3265+230ed96b.
- Mentioned 4 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to galera (AlmaLinux:8) 26.4.11-1.module_el8.6.0+3072+3c630e87, 25.3.35-1.module_el8.6.0+3265+230ed96b; Judy (AlmaLinux:8) 1.0.5-18.module_el8.6.0+3139+3c630e87, 1.0.5-18.module_el8.6.0+3072+3c630e87; mariadb (AlmaLinux:8) 3:10.5.16-2.module_el8.6.0+3072+3c630e87, 3:10.3.35-1.module_el8.6.0+3265+230ed96b or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
- BDU:2022-01074
- ALSA-2022:5826
- ALSA-2022:5948
- ALSA-2022:6443
- openSUSE-SU-2022:0731-1
- openSUSE-SU-2024:11867-1
- RHSA-2022:5759
- RHSA-2022:5826
- RHSA-2022:5948
- RHSA-2022:6306
- RHSA-2022:6443
- RHSA-2023:6821
- RLSA-2022:5826
- RLSA-2022:5948
- RLSA-2022:6443
- SUSE-SU-2022:0725-1
- SUSE-SU-2022:0726-1
- SUSE-SU-2022:0731-1
- SUSE-SU-2022:0731-2
- SUSE-SU-2022:0782-1
- Published
- Jan 29, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.5% · 46th percentile
- CWE
- —
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.5%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| mariadb | mariadb | cpe:2.3:a:mariadb:mariadb |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- fedoraproject fedora35
- fedoraproject fedora36
- mariadb mariadb10.5.0 and later · before 10.5.14
- mariadb mariadb5.5.0 and later · before 10.2.42
- mariadb mariadb10.7.0 and later · before 10.7.2
- mariadb mariadb10.6.0 and later · before 10.6.6
- mariadb mariadb10.3.0 and later · before 10.3.33
- mariadb mariadb10.4.0 and later · before 10.4.23
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | galera | before 26.4.11-1.module_el8.6.0+3072+3c630e87 | 26.4.11-1.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | galera | before 25.3.35-1.module_el8.6.0+3265+230ed96b | 25.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | Judy | before 1.0.5-18.module_el8.6.0+3139+3c630e87 | 1.0.5-18.module_el8.6.0+3139+3c630e87 |
| AlmaLinux:8 | Judy | before 1.0.5-18.module_el8.6.0+3072+3c630e87 | 1.0.5-18.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-backup | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-backup | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-common | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-common | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-devel | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-devel | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-embedded | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-embedded | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-embedded-devel | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-embedded-devel | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-errmsg | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-errmsg | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-gssapi-server | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-gssapi-server | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-oqgraph-engine | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-oqgraph-engine | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
| AlmaLinux:8 | mariadb-pam | before 3:10.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| AlmaLinux:8 | mariadb-server | before 3:10.3.35-1.module_el8.6.0+3265+230ed96b | 3:10.3.35-1.module_el8.6.0+3265+230ed96b |
+96
Same product
mariadb: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-26785MariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via UDF Code in a Shared Object File, followed by a…40Plan
- CVE-2012-5613MySQL 5.5.19 and possibly other versions, and MariaDB 5.5.28a and possibly other versions, when configured to assign the FILE privilege to…40Plan
- CVE-2026-92262MariaDB: Numerous issues caused by historical #mysql50# tablename encoding bypass.39Monitor
Published before and after this one in the same product
- ← EarlierCVE-2021-46657Jan 29, 2022 · get_sort_by_table in MariaDB before 10.6.2 allows an application crash via certain subquery uses of ORDER BY.22Monitor
- ← EarlierCVE-2021-46658Jan 29, 2022 · save_window_function_values in MariaDB before 10.6.3 allows an application crash because of incorrect handling of with_window_func=true for…22Monitor
- Later →CVE-2021-46661Jan 31, 2022 · MariaDB through 10.5.9 allows an application crash in find_field_in_tables and find_order_in_list via an unused common table expression…22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:galera | 26.4.11-1.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:Judy | 1.0.5-18.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-backup | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-common | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-devel | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-embedded | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-embedded-devel | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-errmsg | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-gssapi-server | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-oqgraph-engine | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mariadb-pam | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 · AlmaLinux:8 | Package registry (OSV) |
| alpine:mariadb | 10.4.24-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:mariadb-10.5 | 1:10.5.15-0+deb11u1 · Debian:11 | Package registry (OSV) |
| opensuse:mariadb | 10.5.15-150300.3.15.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:mariadb | 10.6.8-150400.3.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-backup | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-backup-syspaths | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-common | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-config | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-config-syspaths | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-connect-engine | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-debuginfo | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-devel | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-errmsg | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-gssapi-server | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| red hat:rh-mariadb105-mariadb-libs | 3:10.5.16-2.el7 · Red Hat:rhel_software_collections:3::el7 | Package registry (OSV) |
| rocky linux:galera | 0:26.4.11-1.module+el8.6.0+995+5ac2a483 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:Judy | 0:1.0.5-18.module+el8.4.0+427+adf35707 · Rocky Linux:8 | Package registry (OSV) |
+4
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0615 · Sep 14, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0526 · Aug 4, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0183 · Mar 1, 2022(Ubuntu GüvenlikZafiyeti)
- TR-22-0099 · Jan 31, 2022(MariaDB Güvenlik Zafiyeti)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/
- mariadb.com/kb/en/security/
- security.netapp.com/advisory/ntap-20220311-0003/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.