CVE-2026-107819

MariaDB Connector/C: libmariadb allowed cleartext password leakage on TLS hostname verification failure

Published Oct 9, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

MariaDB Connector/C versions 3.4.1 through 3.4.9 contain a flaw in the Zero‑Configuration SSL authentication‑switch logic. The library accepts a certificate that is trusted but fails to reject a hostname mismatch before selecting the non‑hashing mysql_clear_password authentication plugin. An attacker who can perform a man‑in‑the‑middle interception and present a valid certificate for a different hostname can cause the connector to transmit the database password in cleartext inside the TLS session, exposing sensitive credential material.

Affected Systems

Applications that use the vulnerable Connector/C library to connect to MariaDB or MySQL databases over TLS and rely on the mysql_clear_password plugin are affected. This includes any client built against Connector/C from v3.4.1 up to, but not including, v3.4.10. Other MariaDB connectors are not impacted.

Risk and Exploitability

The CVSS score of 5.9 indicates medium severity. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, implying a lower likelihood of exploitation. However, the attack requires network access for a man‑in‑the‑middle position and a certificate that the client will accept for a hostname mismatch, which is achievable by a skilled adversary. The primary risk is the disclosure of cleartext passwords, which compromises confidentiality of database credentials.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update MariaDB Connector/C to version 3.4.10 or later, where the hostname mismatch is correctly rejected before enabling mysql_clear_password
  • Configure the client to enforce strict TLS hostname verification so that any certificate presented for a different hostname is rejected
  • Disable or avoid use of the mysql_clear_password authentication plugin unless it is explicitly required for the application

Generated by OpenCVE AI on October 10, 2026 at 02:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mariadb
Mariadb server
Vendors & Products Mariadb
Mariadb server
Type Values Removed Values Added
Description 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.
Title MariaDB Connector/C: libmariadb allowed cleartext password leakage on TLS hostname verification failure
Weaknesses CWE-297
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

  • CWE-297

    Improper Validation of Certificate with Host Mismatch

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 9, 2026, 5:59 PM
Reserved
Oct 8, 2026, 9:23 PM
Status
Awaiting Analysis
Published
Oct 9, 2026, 6:17 PM
Modified
Oct 13, 2026, 3:27 PM
Severity
Moderate
Public date
Oct 9, 2026, 5:25 PM