CVE-2026-119279
MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths
Description
Summary
MariaDB Connector/J narrowed 8-byte length-encoded integers received from the
server to int without validation. A rogue or MitM server can send a value above
Integer.MAX_VALUE whose truncation becomes a negative or arbitrary length.
Details
The protocol encodes lengths as length-encoded integers, whose 8-byte form the
decoder (readLength() and readIntLengthEncodedNotNull()) returned as
(int) readLong(). A value above Integer.MAX_VALUE therefore wrapped to a
negative or unrelated int, used afterwards as a length to size allocations or
reads, which ended in NegativeArraySizeException, out-of-bounds exceptions or
oversized allocations.
The fix rejects any length-encoded value that does not fit a non-negative int
with an explicit error.
Impact
Availability only: a malicious or compromised server, or a MitM, can crash the client's connection handling with unchecked exceptions or drive oversized allocations. Exploitation requires control of the server side of the connection; no authentication bypass, confidentiality or integrity impact.
Credit
Reported by fg0x0
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mariadb.jdbc » mariadb-java-client | >= 3.0.0, < 3.3.7>= 3.4.0, < 3.4.5>= 3.5.0, < 3.5.10 | 3.3.7, 3.4.5, 3.5.10 |
Blast radius
65% of the dependent artifacts (702) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 10,589 |
| 2 hops | 12,982 |
| 3 hops | 6,274 |
| 4 hops | 1,602 |
| 5 hops | 2,003 |
| 6 hops | 371 |
Most used dependents
- org.openmrs.api » openmrs-api564 usages
- org.openmrs.web » openmrs-web521 usages
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan89 usages
- io.debezium » debezium-connector-mysql72 usages
- org.opendaylight.netconf » odl-restconf70 usages
- org.onap.policy.drools-pdp » policy-management65 usages
- org.openmrs.module » htmlformentry-api62 usages
- com.facebook.presto » presto-tests58 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan-connection52 usages
- io.github.adempiere » base51 usages
- org.apereo.cas » cas-server-support-jpa-util46 usages
- us.fatehi » schemacrawler-testdb44 usages
- org.squashtest.tm » tm.web44 usages
- org.kill-bill.commons » killbill-embeddeddb-mysql40 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-119279
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea
- Packagehttps://github.com/mariadb-corporation/mariadb-connector-j
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10
