{"schemaVersion":3,"id":"CVE-2022-24052","aliases":["ALPINE-CVE-2022-24052","UBUNTU-CVE-2022-24052","DEBIAN-CVE-2022-24052"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-02-18T19:51:48.000Z","modified":"2024-08-03T03:59:23.548Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.6,"severity":"medium","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00694,"percentile":0.5208,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.00499999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00689},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00694,"percentile":0.5208}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00689,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00694,"percentile":0.5208}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"}],"affected":[{"vendor":"alpine","product":"mariadb","name":"mariadb","label":"mariadb","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/mariadb","purlType":"apk","versions":[{"text":"≥ 10.2.0, < 10.4.24-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0, < 10.5.15-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0, < 10.6.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.2.0, < 10.4.24-r0 | ≥ 10.2.0, < 10.5.15-r0 | ≥ 10.2.0, < 10.6.7-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"mariadb-10.5","name":"mariadb-10.5","label":"mariadb-10.5","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mariadb-10.5","purlType":"deb","versions":[{"text":"< 1:10.5.15-0+deb11u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:10.5.15-0+deb11u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.0","name":"mariadb-10.0","label":"mariadb-10.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.0","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.1","name":"mariadb-10.1","label":"mariadb-10.1","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.1","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mariadb-10.3","name":"mariadb-10.3","label":"mariadb-10.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mariadb-10.3","purlType":"deb","versions":[{"text":"< 1:10.3.34-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:10.3.34-0ubuntu0.20.04.1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35 | 36","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mariadb","product":"mariadb","name":"mariadb","label":"mariadb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"10.6.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.2.0, < 10.2.42","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.3.0, < 10.3.33","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.4.0, < 10.4.23","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.5.0, < 10.5.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.6.0, < 10.6.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.7.0, < 10.7.2","noFixRecorded":false,"fixedIn":null},{"text":"10.8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.6.5 | ≥ 10.2.0, < 10.2.42 | ≥ 10.3.0, < 10.3.33 | ≥ 10.4.0, < 10.4.23 | ≥ 10.5.0, < 10.5.14 | ≥ 10.6.0, < 10.6.6 | ≥ 10.7.0, < 10.7.2 | 10.8.0","eol":{"isEol":true,"eolDate":"2026-07-06T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10.6","label":"10.6 (LTS)","eolFrom":"2026-07-06T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"10.6.28"},"product":{"name":"mariadb","label":"MariaDB","category":"database"}},"hubHref":"/vendor/mariadb/mariadb"}],"affectedCount":7,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://mariadb.com/kb/en/security/","label":"mariadb.com/kb/en/security/","hostname":"mariadb.com","tags":["X Refsource MISC","Patch","Vendor Advisory"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-22-367/","label":"www.zerodayinitiative.com/advisories/ZDI-22-367/","hostname":"www.zerodayinitiative.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"https://security.netapp.com/advisory/ntap-20220318-0004/","label":"security.netapp.com/advisory/ntap-20220318-0004/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ4KDAGF3H4D4BDTHRAM6ZEAJJWWMRUO/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKJRBYJAQCOPHSED43A3HUPNKQLDTFGD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZFZVMJL5UDTOZMARLXQIMG3BTG6UNYW/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-24052","label":"security.alpinelinux.org/vuln/CVE-2022-24052","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-24052","label":"ubuntu.com/security/CVE-2022-24052","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5305-1","label":"ubuntu.com/security/notices/USN-5305-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24052","label":"www.cve.org/CVERecord?id=CVE-2022-24052","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-24052","label":"security-tracker.debian.org/tracker/CVE-2022-24052","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24052","label":"nvd.nist.gov/vuln/detail/CVE-2022-24052","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2022-0070","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","SUSE-RU-2023:3956-1","SUSE-RU-2023:4991-1","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","USN-5305-1"],"duplicates":[],"related":["OPENSUSE-SU-2022:0731-1","OPENSUSE-SU-2024:11867-1","SUSE-RU-2023:3956-1","SUSE-RU-2023:4991-1","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","USN-5305-1"]},"timeline":[{"kind":"published","date":"2022-02-18T19:51:48.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T03:59:23.548Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:02:40.780Z","stale":false,"partial":false}}