CVE-2026-55860
org.mariadb:r2dbc-mariadb vulnerable to cleartext password disclosure to a man-in-the-middle server (clear-text auth plugins not gated on a secure transport)
Description
Summary
The connector does not gate clear-text password authentication plugins on transport encryption. A hostile or man-in-the-middle MariaDB server can request a clear-text plugin over an unencrypted (plain-TCP) connection, and the driver responds with the user's password in cleartext on the wire.
Details
The driver does not require a secure transport before using clear-text-password authentication plugins. A hostile or man-in-the-middle server can issue an AuthSwitchRequest naming mysql_clear_password or dialog (PAM) over a plain-TCP, unencrypted connection, and the driver replies with the user's password as cleartext bytes on the wire.
The root cause is that the AuthenticationPlugin interface declares no capability for a plugin to require a secure connection. Because no such gate exists, clear-text plugins run regardless of whether the connection is encrypted.
Impact
The account password is transmitted in cleartext to the peer. An on-path attacker (MITM) who presents themselves as the server can capture the password during the authentication handshake. The disclosed credentials can subsequently be used to authenticate directly against the database server.
Patches
Fixed in 1.4.1. Clear-text authentication plugins (mysql_clear_password, dialog/PAM) now require a secure connection: the AuthenticationPlugin contract can declare that a plugin requires a secure transport, and such plugins are permitted only over an encrypted connection. Upgrade to 1.4.1 or later.
Workarounds
Until you can upgrade, configure certificate verification explicitly: provide the server/CA certificate and use a verifying SSL mode (e.g. VERIFY_CA / VERIFY_FULL) so the connection is encrypted and the server's identity is established before credentials are sent.
Credit
Reported by Yalguun Tumenkhuu (@fg0x0).
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mariadb » r2dbc-mariadb | < 1.4.1 | 1.4.1 |
Blast radius
78% of the dependent artifacts (15) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 840 |
| 2 hops | 1,250 |
| 3 hops | 1,240 |
Most used dependents
- io.gravitee.am.identityprovider » gravitee-am-identityprovider-jdbc2 usages
- org.komapper » komapper-dialect-mariadb-r2dbc2 usages
- io.gravitee.am.gateway.standalone » gravitee-am-gateway-standalone-distribution1 usages
- io.gravitee.am.management.standalone » gravitee-am-management-api-standalone-distribution1 usages
- io.github.bluetape4k » bluetape4k-exposed-r2dbc-tests1 usages
- io.github.bluetape4k.exposed » bluetape4k-exposed-r2dbc-tests1 usages
- org.komapper » komapper-starter-r2dbc1 usages
- io.gravitee.am.gateway.standalone » gravitee-am-gateway-standalone-distribution-zip0 usages
- io.gravitee.am.management.standalone » gravitee-am-management-api-standalone-distribution-zip0 usages
- com.github.yujiaao » c-tablegen-r2dbc-demo0 usages
- name.nkonev.r2dbc-migrate » r2dbc-migrate-standalone0 usages
- io.github.m-m-m » mmm-orm-db-mariadb-r2dbc0 usages
- cn.crushes.cloud » crush-r2dbc0 usages
- io.github.cooperlyt » example0 usages
- io.qalipsis.plugin » qalipsis-plugin-sql0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Package | mariadb-corporation/mariadb-connector-r2dbc | github.com |
| Web | mariadb-corporation/mariadb-connector-r2dbc advisory GHSA-c857-9x2m-cvh2 | github.com |
| Web | mariadb-corporation/mariadb-connector-r2dbc commit be78660 | github.com |
| Web | reports/3784556 | hackerone.com |
| Web | mariadb-corporation/mariadb-connector-r2dbc release 1.4.1 | github.com |
| Web | browse/R2DBC-115 | jira.mariadb.org |
