Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2021-46662: 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.

MediumCVSS 5.5 · v3.1—No exploit Fix available

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.39% (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) 25.3.34-4.module_el8.5.0+2632+14ced695, 25.3.34-4.module_el8.6.0+2867+72759d2f, 26.4.9-4.module_el8.6.0+2761+593e5e59; Judy (AlmaLinux:8) 1.0.5-18.module_el8.6.0+2867+72759d2f, 1.0.5-18.module_el8.5.0+2637+d11efe18, 1.0.5-18.module_el8.6.0+2761+593e5e59; mariadb (AlmaLinux:8) 3:10.5.13-1.module_el8.5.0+2637+d11efe18, 3:10.3.32-2.module_el8.5.0+2632+14ced695, 3:10.3.32-2.module_el8.6.0+2867+72759d2f.
  • Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to galera (AlmaLinux:8) 25.3.34-4.module_el8.5.0+2632+14ced695, 25.3.34-4.module_el8.6.0+2867+72759d2f, 26.4.9-4.module_el8.6.0+2761+593e5e59; Judy (AlmaLinux:8) 1.0.5-18.module_el8.6.0+2867+72759d2f, 1.0.5-18.module_el8.5.0+2637+d11efe18, 1.0.5-18.module_el8.6.0+2761+593e5e59; mariadb (AlmaLinux:8) 3:10.5.13-1.module_el8.5.0+2637+d11efe18, 3:10.3.32-2.module_el8.5.0+2632+14ced695, 3:10.3.32-2.module_el8.6.0+2867+72759d2f 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

Published
Jan 31, 2022
Updated
Jun 17, 2026
EPSS
0.3% · 33th percentile
CWE
—

Report tools

JSON

Action score

22

Monitor

Low priority for now.

CVSS
22 / 40 · 5.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

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.

Follow CVE-2021-46662

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
mariadbmariadb

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • mariadb mariadb10.3.0 and later · before 10.3.32
  • mariadb mariadb10.4.0 and later · before 10.4.22
  • mariadb mariadb10.5.0 and later · before 10.5.13
  • mariadb mariadb10.6.0 and later · before 10.6.5

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8galerabefore 25.3.34-4.module_el8.5.0+2632+14ced69525.3.34-4.module_el8.5.0+2632+14ced695
AlmaLinux:8galerabefore 25.3.34-4.module_el8.6.0+2867+72759d2f25.3.34-4.module_el8.6.0+2867+72759d2f
AlmaLinux:8galerabefore 26.4.9-4.module_el8.6.0+2761+593e5e5926.4.9-4.module_el8.6.0+2761+593e5e59
AlmaLinux:8galerabefore 26.4.9-4.module_el8.5.0+2637+d11efe1826.4.9-4.module_el8.5.0+2637+d11efe18
AlmaLinux:8Judybefore 1.0.5-18.module_el8.6.0+2867+72759d2f1.0.5-18.module_el8.6.0+2867+72759d2f
AlmaLinux:8Judybefore 1.0.5-18.module_el8.5.0+2637+d11efe181.0.5-18.module_el8.5.0+2637+d11efe18
AlmaLinux:8Judybefore 1.0.5-18.module_el8.6.0+2761+593e5e591.0.5-18.module_el8.6.0+2761+593e5e59
AlmaLinux:8Judybefore 1.0.5-18.module_el8.5.0+2632+14ced6951.0.5-18.module_el8.5.0+2632+14ced695
AlmaLinux:8mariadbbefore 3:10.5.13-1.module_el8.5.0+2637+d11efe183:10.5.13-1.module_el8.5.0+2637+d11efe18
AlmaLinux:8mariadbbefore 3:10.3.32-2.module_el8.5.0+2632+14ced6953:10.3.32-2.module_el8.5.0+2632+14ced695
AlmaLinux:8mariadbbefore 3:10.3.32-2.module_el8.6.0+2867+72759d2f3:10.3.32-2.module_el8.6.0+2867+72759d2f
AlmaLinux:8mariadbbefore 3:10.5.13-1.module_el8.6.0+2761+593e5e593:10.5.13-1.module_el8.6.0+2761+593e5e59
AlmaLinux:8mariadb-backupbefore 3:10.5.13-1.module_el8.6.0+2761+593e5e593:10.5.13-1.module_el8.6.0+2761+593e5e59
AlmaLinux:8mariadb-backupbefore 3:10.5.13-1.module_el8.5.0+2637+d11efe183:10.5.13-1.module_el8.5.0+2637+d11efe18
AlmaLinux:8mariadb-backupbefore 3:10.3.32-2.module_el8.6.0+2867+72759d2f3:10.3.32-2.module_el8.6.0+2867+72759d2f
AlmaLinux:8mariadb-backupbefore 3:10.3.32-2.module_el8.5.0+2632+14ced6953:10.3.32-2.module_el8.5.0+2632+14ced695
AlmaLinux:8mariadb-commonbefore 3:10.3.32-2.module_el8.5.0+2632+14ced6953:10.3.32-2.module_el8.5.0+2632+14ced695
AlmaLinux:8mariadb-commonbefore 3:10.5.13-1.module_el8.5.0+2637+d11efe183:10.5.13-1.module_el8.5.0+2637+d11efe18
AlmaLinux:8mariadb-commonbefore 3:10.5.13-1.module_el8.6.0+2761+593e5e593:10.5.13-1.module_el8.6.0+2761+593e5e59
AlmaLinux:8mariadb-commonbefore 3:10.3.32-2.module_el8.6.0+2867+72759d2f3:10.3.32-2.module_el8.6.0+2867+72759d2f
AlmaLinux:8mariadb-develbefore 3:10.5.13-1.module_el8.5.0+2637+d11efe183:10.5.13-1.module_el8.5.0+2637+d11efe18
AlmaLinux:8mariadb-develbefore 3:10.5.13-1.module_el8.6.0+2761+593e5e593:10.5.13-1.module_el8.6.0+2761+593e5e59
AlmaLinux:8mariadb-develbefore 3:10.3.32-2.module_el8.6.0+2867+72759d2f3:10.3.32-2.module_el8.6.0+2867+72759d2f
AlmaLinux:8mariadb-develbefore 3:10.3.32-2.module_el8.5.0+2632+14ced6953:10.3.32-2.module_el8.5.0+2632+14ced695

+96

Other 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-46659Jan 29, 2022 · MariaDB before 10.7.2 allows an application crash because it does not recognize that SELECT_LEX::nest_level is local to each VIEW.
    22Monitor
  • ← EarlierCVE-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
  • Later →CVE-2021-46663Jan 31, 2022 · MariaDB through 10.5.13 allows a ha_maria::extra application crash via certain SELECT statements.
    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 / packageFixed versionSource
almalinux:galera25.3.34-4.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:Judy1.0.5-18.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb3:10.3.32-2.module_el8.5.0+2632+14ced695 · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-backup3:10.3.32-2.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-common3:10.3.32-2.module_el8.5.0+2632+14ced695 · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-devel3:10.3.32-2.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-embedded3:10.3.32-2.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-embedded-devel3:10.3.32-2.module_el8.5.0+2632+14ced695 · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-errmsg3:10.3.32-2.module_el8.5.0+2632+14ced695 · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-gssapi-server3:10.3.32-2.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-oqgraph-engine3:10.3.32-2.module_el8.6.0+2867+72759d2f · AlmaLinux:8Package registry (OSV)
almalinux:mariadb-server3:10.3.32-2.module_el8.5.0+2632+14ced695 · AlmaLinux:8Package registry (OSV)
alpine:mariadb10.6.7-r0 · Alpine:v3.15Package registry (OSV)
debian:mariadb-10.51:10.5.15-0+deb11u1 · Debian:11Package registry (OSV)
red hat:rh-mariadb105-galera0:26.4.9-3.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-galera-debuginfo0:26.4.9-3.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-backup3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-backup-syspaths3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-common3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-config3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-config-syspaths3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-connect-engine3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-debuginfo3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-devel3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-mariadb105-mariadb-errmsg3:10.5.13-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
rocky linux:galera0:25.3.34-4.module+el8.5.0+777+18007c86 · Rocky Linux:8Package registry (OSV)
rocky linux:Judy0:1.0.5-18.module+el8.4.0+427+adf35707 · Rocky Linux:8Package registry (OSV)
rocky linux:mariadb3:10.3.32-2.module+el8.5.0+777+18007c86 · Rocky Linux:8Package registry (OSV)

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.

All national notices →

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.

References

Show all references (1 more)

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records