Skip to content
Heist/ feed
Back to feed
HighFix available

mariadb — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2022-24048

MariaDB CONNECT Storage Engine Stack-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 stack-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-16191.

Products
mariadb
Affected versions
Not specified
Fixed versions
10.4.24-r0, 10.5.15-r0, 10.6.7-r0
CVEs
CVE-2022-24048
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:10 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-24048

core-osv · Original source

Published 18 Feb 2022, 20:15 UTC

MariaDB CONNECT Storage Engine Stack-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 stack-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-16191.

osv:ALPINE-CVE-2022-24048

mariadb

Fixed versions: 10.4.24-r0

mariadb

Fixed versions: 10.5.15-r0

mariadb

Fixed versions: 10.5.15-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

mariadb

Fixed versions: 10.6.7-r0

Complete source record
{
  "id": "cc053506f346799accd8d5e989a489455e949da79e2189e103008bdbb01f30c0",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-24048",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-24048",
    "summary": "MariaDB CONNECT Storage Engine Stack-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 stack-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-16191.",
    "evidence": "osv:ALPINE-CVE-2022-24048",
    "products": [
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.4.24-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.5.15-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.5.15-r0",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/8/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/9/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/10/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/11/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/11/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/12/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "10.6.7-r0",
            "evidence": "/affected/12/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2022-24048",
      "aliases": [
        "ALPINE-CVE-2022-24048"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.4.24-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.5.15-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.5.15-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.17"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.18"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.19"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.20"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.21"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.22"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.23"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "10.2.0"
                },
                {
                  "fixed": "10.6.7-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:apk/alpine/mariadb?arch=source",
            "ecosystem": "Alpine:v3.24"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-24048.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.168462953Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-24048"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-24048"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-24048",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321717,
  "published_at": "2022-02-18T20:15:17.757+00:00"
}