CVE-2026-119279
MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths
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.
Fixes and workarounds
Fix
org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.3.7. Check the advisory for supported release branches.
Source: OSV GHSA-797x-p4mc-jwpmFix
org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.4.5. Check the advisory for supported release branches.
Source: OSV GHSA-797x-p4mc-jwpmFix
org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.5.10. Check the advisory for supported release branches.
Source: OSV GHSA-797x-p4mc-jwpmAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| mariadb-connector-j mariadb-corporation |
>= 3.0.0, < 3.3.7 (affected) >= 3.4.0, < 3.4.5 (affected) >= 3.5.0, < 3.5.10 (affected) |
CNA: GitHub_M |
org.mariadb.jdbc:mariadb-java-clientorg.mariadb.jdbc:mariadb-java-client
Maven |
3.0.1-beta (affected, Maven) 3.0.10 (affected, Maven) 3.0.11 (affected, Maven) 3.0.2-rc (affected, Maven) 3.0.3 (affected, Maven) 3.0.4 (affected, Maven) 3.0.5 (affected, Maven) 3.0.6 (affected, Maven) 3.0.7 (affected, Maven) 3.0.8 (affected, Maven) 3.0.9 (affected, Maven) 3.1.0 (affected, Maven) 3.1.1 (affected, Maven) 3.1.2 (affected, Maven) 3.1.3 (affected, Maven) 3.1.4 (affected, Maven) 3.2.0 (affected, Maven) 3.3.0 (affected, Maven) 3.3.1 (affected, Maven) 3.3.2 (affected, Maven) 3.3.3 (affected, Maven) 3.3.4 (affected, Maven) 3.3.5 (affected, Maven) 3.3.6 (affected, Maven) Ecosystem version events: introduced 3.0.0; fixed 3.3.7 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-797x-p4mc-jwpm |
org.mariadb.jdbc:mariadb-java-clientorg.mariadb.jdbc:mariadb-java-client
Maven |
3.4.0 (affected, Maven) 3.4.1 (affected, Maven) 3.4.2 (affected, Maven) 3.4.3 (affected, Maven) 3.4.4 (affected, Maven) Ecosystem version events: introduced 3.4.0; fixed 3.4.5 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-797x-p4mc-jwpm |
org.mariadb.jdbc:mariadb-java-clientorg.mariadb.jdbc:mariadb-java-client
Maven |
3.5.0 (affected, Maven) 3.5.1 (affected, Maven) 3.5.2 (affected, Maven) 3.5.3 (affected, Maven) 3.5.4 (affected, Maven) 3.5.5 (affected, Maven) 3.5.6 (affected, Maven) 3.5.7 (affected, Maven) 3.5.8 (affected, Maven) 3.5.9 (affected, Maven) Ecosystem version events: introduced 3.5.0; fixed 3.5.10 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-797x-p4mc-jwpm |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.9 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | CNA: GitHub_M |
| 3.1 / 5.9 medium |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpmCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99CNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667CNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23eaCNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7CNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5CNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10CNA: GitHub_M · x_refsource_MISC
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10[email protected]
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm[email protected]
- https://github.com/advisories/GHSA-797x-p4mc-jwpmOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpmOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.