---
id: CVE-2026-107819
title: >-
  MariaDB Connector/C is a C and C++ client library for connecting applications
  to MariaDB and MySQL databases
summary: >-
  MariaDB Connector/C is a C and C++ client library for connecting applications
  to MariaDB and MySQL databases. From 3.4.1 until 3.4.10, the MariaDB
  Connector/C libmariadb Zero-Configuration SSL authentication-switch logic
  checked certific…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-297
published: '2026-10-09'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T18:17:03.533'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107819'
references:
  - url: 'https://github.com/MariaDB/server/security/advisories/GHSA-fmq9-qjxj-qpf7'
    label: security-advisories@github.com
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-c/commit/e8c0a16d94ddf844668d684a7d42b37ac8e0fc02
    label: security-advisories@github.com
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-c/releases/tag/v3.4.10
    label: security-advisories@github.com
  - url: 'https://jira.mariadb.org/browse/CONC-846'
    label: security-advisories@github.com
tags:
  - nvd
ingestedAt: '2026-10-09T19:09:33.752Z'
---

## Overview

MariaDB Connector/C is a C and C++ client library for connecting applications to MariaDB and MySQL databases. From 3.4.1 until 3.4.10, the MariaDB Connector/C libmariadb Zero-Configuration SSL authentication-switch logic checked certificate trust failure but did not reject a TLS hostname verification mismatch before selecting a non-hashing authentication plugin. An active man-in-the-middle attacker with a valid certificate for another hostname could request mysql_clear_password and obtain the database password inside the attacker-controlled TLS connection. Other MariaDB connectors are not affected. This issue is fixed in version 3.4.10.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
