CVE-2026-119278
Published:October 29, 2026
Updated:October 30, 2026
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
https://github.com/mariadb-corporation/mariadb-connector-j.git (GITHUB):
Affected version(s) >=2.5.1 <2.7.13Fix Suggestion:
Update to version 2.7.13https://github.com/mariadb-corporation/mariadb-connector-j.git (GITHUB):
Affected version(s) >=3.4.0 <3.4.5Fix Suggestion:
Update to version 3.4.5https://github.com/mariadb-corporation/mariadb-connector-j.git (GITHUB):
Affected version(s) >=3.0.0-alpha <3.3.7Fix Suggestion:
Update to version 3.3.7https://github.com/mariadb-corporation/mariadb-connector-j.git (GITHUB):
Affected version(s) >=3.5.0 <3.5.6Fix Suggestion:
Update to version 3.5.6org.mariadb.jdbc:mariadb-java-client (JAVA):
Affected version(s) >=3.4.0 <3.4.5Fix Suggestion:
Update to version 3.4.5org.mariadb.jdbc:mariadb-java-client (JAVA):
Affected version(s) >=2.5.1 <2.7.13Fix Suggestion:
Update to version 2.7.13org.mariadb.jdbc:mariadb-java-client (JAVA):
Affected version(s) >=3.0.0-alpha <3.3.7Fix Suggestion:
Update to version 3.3.7org.mariadb.jdbc:mariadb-java-client (JAVA):
Affected version(s) >=3.5.0 <3.5.6Fix Suggestion:
Update to version 3.5.6Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH