Vulnerability · Published Oct 29, 2026 · Assigned by GitHub_M
CVE-2026-119278MariaDB Connector/J: Rogue server can crash the client during caching_sha2_password authentication
Medium 5.9
In plain English
A medium-severity security flaw in mariadb-connector-j from mariadb-corporation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mariadb-connector-java | no fix listed | DEBIAN-CVE-2026-119278 |
| Debian:13 | mariadb-connector-java | no fix listed | DEBIAN-CVE-2026-119278 |
| Debian:14 | mariadb-connector-java | 3.5.10-1 | DEBIAN-CVE-2026-119278 |
| Ubuntu:22.04:LTS | mariadb-connector-java | no fix listed | UBUNTU-CVE-2026-119278 |
| Ubuntu:24.04:LTS | mariadb-connector-java | no fix listed | UBUNTU-CVE-2026-119278 |
| Ubuntu:26.04:LTS | mariadb-connector-java | no fix listed | UBUNTU-CVE-2026-119278 |
| Ubuntu:26.10 | mariadb-connector-java | no fix listed | UBUNTU-CVE-2026-119278 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mariadb-corporation | mariadb-connector-j | >= 3.0.0, < 3.3.7>= 3.4.0, < 3.4.5 |
Weakness: CWE-129, CWE-789 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-r9vh-xh4r-j6gr x_refsource_CONFIRM
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/1e32b7010485f090cc402528c334301432495fbe x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/86a90b0dc9746aa3bd4aa1df264be22a2d1b7d98 x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7 x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5 x_refsource_MISC