CVE-2026-119278
MariaDB Connector/J: Rogue server can crash the client during caching_sha2_password authentication
Description
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. From 3.0.0 until 3.3.7 and 3.4.5, during caching_sha2_password authentication, the authentication-more-data response was treated as a length-encoded byte array, memory was allocated from the server-declared length, and authResult[0] was accessed without ensuring a byte existed. A malicious or compromised server, or a machine-in-the-middle attacker, could declare a very large length or send an empty response before any password was transmitted. The malformed packet could cause excessive allocation or an unchecked ArrayIndexOutOfBoundsException escaping from DriverManager.getConnection(). This issue is fixed in versions 3.3.7 and 3.4.5.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mariadb.jdbc » mariadb-java-client | = >= 3.0.0, < 3.3.7= >= 3.4.0, < 3.4.5 | - |
Blast radius
6% of the dependent artifacts (6) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 446 |
| 2 hops | 130 |
| 3 hops | 88 |
Most used dependents
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.apereo.cas » cas-server-support-jpa-util46 usages
- org.apereo.cas » cas-server-support-jdbc-drivers33 usages
- org.apereo.cas » cas-server-support-jpa-hibernate18 usages
- io.quarkus » quarkus-jdbc-mariadb17 usages
- us.fatehi » schemacrawler-jdbc-drivers12 usages
- org.xwiki.platform » xwiki-platform-search-test-utils10 usages
- org.projectnessie.nessie » nessie-quarkus-common9 usages
- org.xwiki.platform » xwiki-platform-ckeditor-test-pageobjects8 usages
- de.svws-nrw » svws-db7 usages
- org.xwiki.platform » xwiki-platform-repository-test-utils6 usages
- de.svws-nrw » svws-db-dto5 usages
- de.svws-nrw » svws-db-utils5 usages
- io.quarkus » quarkus-jdbc-mariadb-deployment5 usages
- org.apereo.cas » cas-server-support-jdbc4 usages
Computed from the dependency graph of build 20261202.0245 (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
| Advisory | CVE record CVE-2026-119278 | github.com |
| Advisory | mariadb-corporation/mariadb-connector-j advisory GHSA-r9vh-xh4r-j6gr | github.com |
| Advisory | NVD CVE-2026-119278 | nvd.nist.gov |
| Fix | mariadb-corporation/mariadb-connector-j commit 1e32b70 | github.com |
| Fix | mariadb-corporation/mariadb-connector-j commit 86a90b0 | github.com |
| Web | mariadb-corporation/mariadb-connector-j release 3.3.7 | github.com |
| Web | mariadb-corporation/mariadb-connector-j release 3.4.5 | github.com |
