CVE-2026-119279 · GHSA-797x-p4mc-jwpm
MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths
- Risk score
- 40/100
- CVSS
- 5.9 v3.1
- Published
- 29 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 withou…
- Affected
- org.mariadb.jdbc:mariadb-java-client (maven) >= 3.0.0, < 3.3.7; org.mariadb.jdbc:mariadb-java-client (maven) >= 3.4.0, < 3.4.5; org.mariadb.jdbc:mariadb-java-client (maven) >= 3.5.0, < 3.5.10
- Fix
- Upgrade org.mariadb.jdbc:mariadb-java-client to 3.3.7 or 3.4.5 or 3.5.10 (whichever matches your release line) or later.
- Exploitation
- No known exploitation
Story map
At a glance
org.mariadb.jdbc:mariadb-java-client: Yellow, plan it in. 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 withou…
The flaws
- CVE-2026-119279: MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths (CVSS 5.9)
- CVE-2026-119210: MariaDB Connector/J: LOAD DATA LOCAL INFILE file check could be satisfied by text inside quoted identifiers, letting a malicious server read client files (CVSS 5.9)
- CVE-2026-119276: MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets (CVSS 5.9)
- CVE-2026-119281: MariaDB Connector/J: Server could switch character_set_results away from UTF-8 without the client noticing (CVSS 5.9)
The fix
Upgrade org.mariadb.jdbc:mariadb-java-client: 3.3.7 · 3.4.5 · 3.5.10 · 3.5.11 or later on your release line
Who is exposed: org.mariadb.jdbc:mariadb-java-client (maven) >= 3.0.0, < 3.3.7; org.mariadb.jdbc:mariadb-java-client (maven) >= 3.4.0, < 3.4.5; org.mariadb.jdbc:mariadb-java-client (maven) >= 3.5.0, < 3.5.10
Where it stands
- No known exploitation
Connects to
- Same weakness: CWE-130 (CWE-130). 15 other warnings in 30 days
Why it is Yellow
- CVSS 5.9 medium
- On your watchlist: Maven
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| org.mariadb.jdbc:mariadb-java-client | maven | >= 3.0.0, < 3.3.7 | 3.3.7 |
| org.mariadb.jdbc:mariadb-java-client | maven | >= 3.4.0, < 3.4.5 | 3.4.5 |
| org.mariadb.jdbc:mariadb-java-client | maven | >= 3.5.0, < 3.5.10 | 3.5.10 |
References
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm
- https://github.com/advisories/GHSA-797x-p4mc-jwpm
- https://nvd.nist.gov/vuln/detail/CVE-2026-119279
- https://github.com/advisories/GHSA-797x-p4mc-jwpm
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.
Last activity 30 Oct 2026. Patch Forecast updates every hour.