{"id":"CVE-2026-119279","aliases":["CVE-2026-119279","GHSA-797x-p4mc-jwpm"],"related":[],"kind":"vulnerability","state":"published","title":"MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nMariaDB Connector/J narrowed 8-byte length-encoded integers received from the\nserver to `int` without validation. A rogue or MitM server can send a value above\n`Integer.MAX_VALUE` whose truncation becomes a negative or arbitrary length.\n\n## Details\n\nThe protocol encodes lengths as length-encoded integers, whose 8-byte form the\ndecoder (`readLength()` and `readIntLengthEncodedNotNull()`) returned as\n`(int) readLong()`. A value above `Integer.MAX_VALUE` therefore wrapped to a\nnegative or unrelated `int`, used afterwards as a length to size allocations or\nreads, which ended in `NegativeArraySizeException`, out-of-bounds exceptions or\noversized allocations.\n\nThe fix rejects any length-encoded value that does not fit a non-negative `int`\nwith an explicit error.\n\n## Impact\n\nAvailability only: a malicious or compromised server, or a MitM, can crash the\nclient's connection handling with unchecked exceptions or drive oversized\nallocations. Exploitation requires control of the server side of the connection;\nno authentication bypass, confidentiality or integrity impact.\n\n## Credit\n\nReported by fg0x0","format":"markdown","source":"ghsa"}],"published":"2026-10-29T20:52:22.903Z","modified":"2026-11-03T17:18:05.513Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-130","CWE-190"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.3.7","status":"affected"},{"version":">= 3.4.0, < 3.4.5","status":"affected"},{"version":">= 3.5.0, < 3.5.10","status":"affected"}],"vendor":"mariadb-corporation","product":"mariadb-connector-j","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.3.7"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.4.0","status":"affected","fixed":"3.4.5"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.5.0","status":"affected","fixed":"3.5.10"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"}],"references":[{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119279","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-03T16:47:19.574Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-119279","url":"https://www.cve.org/CVERecord?id=CVE-2026-119279","licence":"CVE Terms of Use","modified":"2026-11-03T16:47:49.073Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-797x-p4mc-jwpm","url":"https://github.com/advisories/GHSA-797x-p4mc-jwpm","licence":"CC-BY-4.0","modified":"2026-10-30T23:15:05.687Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-119279","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119279","licence":"Public domain","modified":"2026-11-03T17:18:05.513Z"}],"updatedAt":"2026-11-25T22:59:47.840Z","epss":{"score":0.00482,"percentile":0.43201,"date":"2026-12-01T12:00:22.000Z"}}