MariaDB CONNECT Storage Engine Heap-based Buffer Overflow Privilege Escalation Vulnerability.
MariaDB CONNECT Storage Engine Heap-based Buffer Overflow Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of MariaDB. Authentication is required to exploit this vulnerability. The specific flaw exists within the processing of SQL queries. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the service account. Was ZDI-CAN-16190.
- BDU:2022-00883
- 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
- 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
- SUSE-SU-2022:2561-1
- Published
- Feb 18, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.7% · 51th percentile
- CWE
- CWE-122
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.7%
CNA vs NVD score
- NVD
- 7.8
- CNA · zdi
- 7.0
- 0.8 point gap
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| 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 mariadb10.6.0 and later · before 10.6.6
- mariadb mariadb10.2.0 and later · before 10.2.42
- mariadb mariadb10.7.0 and later · before 10.7.2
- mariadb mariadb10.3.0 and later · before 10.3.33
- mariadb mariadb10.4.0 and later · before 10.4.23
- mariadb mariadb10.8.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (zdi). Independent of NVD's CPE analysis and usually ahead of it.
MariaDB MariaDB
- 10.6.5affected
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 25.3.35-1.module_el8.6.0+3265+230ed96b | 25.3.35-1.module_el8.6.0+3265+230ed96b |
| 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 | Judy | before 1.0.5-18.module_el8.6.0+3072+3c630e87 | 1.0.5-18.module_el8.6.0+3072+3c630e87 |
| 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 | 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.5.16-2.module_el8.6.0+3072+3c630e87 | 3:10.5.16-2.module_el8.6.0+3072+3c630e87 |
| 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-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-2026-49261MariaDB server has unsafe parameter handling in `wsrep_notify_cmd`40Plan
- 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 "cre40Plan
- CVE-2021-27928A remote code execution issue was discovered in MariaDB 10.2 before 10.2.37, 10.3 before 10.3.28, 10.4 before 10.4.18, and 10.5 before 10.5.40Plan
- CVE-2026-32710Heap-based Buffer Overflow in MariaDB39Monitor
- CVE-2020-15180A flaw was found in the mysql-wsrep component of mariadb.38Monitor
- CVE-2017-15365sql/event_data_objects.cc in MariaDB before 10.1.30 and 10.2.x before 10.2.10 and Percona XtraDB Cluster before 5.6.37-26.21-3 and 5.7.x bef36Monitor
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.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- AnonymousTrend Micro Zero Day Initiative
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
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-0160 · Feb 21, 2022(MariaDB Güvenlik Zafiyeti)
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
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-122 · Heap-based Buffer OverflowCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/
- 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-20220318-0004/
- www.zerodayinitiative.com/advisories/ZDI-22-367/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.