server: MariaDB Connector/C: libmariadb allowed cleartext password leakage on TLS hostname verification failure
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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.
Text from CVE List
Affected versions 1
- serveraffected: >= 3.4.1, < 3.4.10CVE List
References 4
- github.com/mariadb-corporation/mariadb-connector-c/commit/e8c0a16d94ddf844668d684a7d42b37ac8e0fc02Fixvia CVE List
- github.com/mariadb-corporation/mariadb-connector-c/releases/tag/v3.4.10Fixvia CVE List
- github.com/MariaDB/server/security/advisories/GHSA-fmq9-qjxj-qpf7Advisoryvia CVE List
- jira.mariadb.org/browse/CONC-846Referencevia CVE List