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

CVE-2026-107819
MEDIUM 5.9

At a glance

Source
NVD
EPSS
EPSS 0.34 % · percentile 29 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
MariaDB · server
NVD status
Awaiting Analysis

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.

Weaknesses (CWE)

  • CWE-297 — Improper Validation of Certificate with Host Mismatch

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NGitHub_M
CVSS 3.1MEDIUM 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NNVD · security-advisories@github.com (Secondary)

European references

Affected products

ProductAffected versions
MariaDB · server
affected : >= 3.4.1, < 3.4.10

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD