CVE-2026-107819: MariaDB Connector/C: libmariadb allowed cleartext password leakage on TLS hostname verification failure

Published Oct 9, 2026
·
Updated

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 mysqlclearpassword 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.

Affected Software

1 affected component
MariaDB Connector/C>=3.4.1<3.4.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MariaDB Connector/C libmariadb to a version that resolves this vulnerability.

    Fixed in 3.4.10

Event History

Oct 9, 2026
CVE Published
via MITRE·05:25 PM
Data Sourced
via MITRE·05:25 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using MariaDB Connector/C libmariadb versions 3.4.1 through 3.4.9 are affected. Other MariaDB connectors are not affected.

2

What does an attacker need to exploit it?

An attacker must be active on the connection path and able to perform a man-in-the-middle attack using a valid TLS certificate for a different hostname. The attacker can then request the mysql_clear_password authentication plugin and capture the database password within the attacker-controlled TLS connection.

3

Is a certificate trust failure enough to trigger the issue?

No. The affected logic checked certificate trust failures; the flaw was specifically that it did not reject a TLS hostname verification mismatch before selecting a non-hashing authentication plugin.

4

What is the available remediation?

Upgrade MariaDB Connector/C to version 3.4.10, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203