Skip to main content
← All vulnerabilities
CVE-2026-119279EUVD-2026-113386

MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.3.7, 3.4.5, 3.5.10
None on Exploit-DB, Metasploit or GitHub

Summary

MariaDB Connector/J, the Java client library used to connect applications to MariaDB and MySQL databases, is affected. A malicious or compromised database server, or an attacker intercepting the connection, could cause the client to crash with errors or consume excessive memory during connection handling.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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, 3.4.5, and 3.5.10, the ReadableByteBuf.readLength() and ReadableByteBuf.readIntLengthEncodedNotNull() methods narrowed the protocol's unsigned 8-byte length-encoded integer to a Java int without checking that the value fit a non-negative integer. Values above Integer.MAX_VALUE could wrap to a negative or unrelated length that downstream allocation and read paths used. A malicious or compromised server, or a machine-in-the-middle attacker, could trigger NegativeArraySizeException, out-of-bounds failures, or oversized allocation behavior in client connection handling. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.10.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • mariadb-corporation mariadb-connector-j

    From 3.0.0 · fixed in 3.3.7; From 3.4.0 · fixed in 3.4.5; From 3.5.0 · fixed in 3.5.10

References 7

GitHub · mariadb-corporation/mariadb-connector-j