CVE-2026-119278: MariaDB Connector/J: Rogue server can crash the client during caching_sha2_password authentication

Published Oct 29, 2026
·
Updated

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 cachingsha2password 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 Software

10 affected componentsFixes available
debian/mariadb-connector-java*
debian/mariadb-connector-java*
debian/mariadb-connector-java<3.5.10-1
3.5.10-1
debian/mariadb-connector-java<=2.7.6-1
3.5.10-1
ubuntu/mariadb-connector-java*
ubuntu/mariadb-connector-java*
ubuntu/mariadb-connector-java*
ubuntu/mariadb-connector-java*
ubuntu/mariadb-connector-java*
ubuntu/mariadb-connector-java*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/mariadb-connector-java to a version that resolves this vulnerability.

    Fixed in 3.5.10-1
  2. Upgrade

    Upgrade MariaDB Connector/J to a version that resolves this vulnerability.

    Fixed in 3.3.7
  3. Upgrade

    Upgrade MariaDB Connector/J to a version that resolves this vulnerability.

    Fixed in 3.4.5

Event History

Oct 29, 2026
CVE Published
via MITRE·08:50 PM
Data Sourced
via MITRE·08:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·09:17 PM
Affected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using MariaDB Connector/J versions from 3.0.0 through versions before 3.3.7 or 3.4.5 are affected when they perform caching_sha2_password authentication. Exploitation requires the application to connect to a malicious or compromised database server, or for an attacker to act as a machine in the middle.

2

Can this be exploited to obtain database passwords or alter data?

The malformed authentication response is processed before any password is transmitted. The described impact is client-side denial of service through excessive memory allocation or an unchecked ArrayIndexOutOfBoundsException; no confidentiality or integrity impact is stated.

3

What happens when exploitation succeeds?

A rogue server or machine-in-the-middle attacker can send a very large declared response length, potentially causing excessive memory allocation, or an empty response that causes an unchecked ArrayIndexOutOfBoundsException. The exception can escape from DriverManager.getConnection(), preventing the connection from being established.

4

What versions contain the fix?

The issue is fixed in MariaDB Connector/J 3.3.7 and 3.4.5. Upgrade to one of those fixed versions or a later applicable release.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203