CVE-2026-107819: CWE-297: Improper Validation of Certificate with Host Mismatch in MariaDB server
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.
CVSS v3.1
Score 5.9medium
Affected software
MariaDB
server
pkg:github/mariadb-corporation/mariadb-connector-cRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
MariaDB Connector/C, a client library for MariaDB and MySQL databases, had an improper validation of certificates with host mismatch in its Zero-Configuration SSL authentication-switch logic from versions 3.4.1 until 3.4.10. While the library checked for certificate trust failure, it did not reject TLS hostname verification mismatches before selecting a non-hashing authentication plugin. This allowed an active man-in-the-middle attacker possessing a valid certificate for a different hostname to request the mysql_clear_password authentication method and retrieve the database password within the attacker-controlled TLS session. Other MariaDB connectors are not affected by this vulnerability. The issue was resolved in version 3.4.10.
Potential Impact
An attacker capable of performing a man-in-the-middle attack with a valid certificate for a hostname different from the intended server can bypass hostname verification and obtain the database password via the mysql_clear_password authentication method. This compromises the confidentiality of database credentials but does not affect data integrity or availability.
Mitigation Recommendations
Upgrade MariaDB Connector/C to version 3.4.10 or later, where the vulnerability is fixed. No other mitigation is required as the issue is resolved in this official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-08T21:23:59.823Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac9291a2cdf04f656733beb
Added to database: 10/09/2026, 17:49:14 UTC
Last enriched: 10/09/2026, 18:03:45 UTC
Last updated: 10/09/2026, 18:57:31 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.