{"id":"CVE-2026-119279","aliases":["GHSA-797x-p4mc-jwpm"],"title":"MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths","titleSource":"GitHub_M","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"## 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","severity":"medium","score":5.9,"published":"2026-10-29T20:52:22.903Z","modified":"2026-10-30T23:15:05.687Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Maven","name":"org.mariadb.jdbc:mariadb-java-client","sources":[{"name":"OSV · GHSA-797x-p4mc-jwpm","url":"https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm"}],"ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.3.7"}],"type":"ECOSYSTEM"}],"versions":["3.0.1-beta","3.0.10","3.0.11","3.0.2-rc","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.2.0","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6"],"fixed":["3.3.7"]},{"ecosystem":"Maven","name":"org.mariadb.jdbc:mariadb-java-client","sources":[{"name":"OSV · GHSA-797x-p4mc-jwpm","url":"https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm"}],"ranges":[{"events":[{"introduced":"3.4.0"},{"fixed":"3.4.5"}],"type":"ECOSYSTEM"}],"versions":["3.4.0","3.4.1","3.4.2","3.4.3","3.4.4"],"fixed":["3.4.5"]},{"ecosystem":"Maven","name":"org.mariadb.jdbc:mariadb-java-client","sources":[{"name":"OSV · GHSA-797x-p4mc-jwpm","url":"https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm"}],"ranges":[{"events":[{"introduced":"3.5.0"},{"fixed":"3.5.10"}],"type":"ECOSYSTEM"}],"versions":["3.5.0","3.5.1","3.5.2","3.5.3","3.5.4","3.5.5","3.5.6","3.5.7","3.5.8","3.5.9"],"fixed":["3.5.10"]}],"sourceAffected":[],"references":["https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm","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://nvd.nist.gov/vuln/detail/CVE-2026-119279","https://github.com/mariadb-corporation/mariadb-connector-j"],"sources":[{"name":"CVE","id":"CVE-2026-119279","modified":"2026-10-29T20:52:22.903Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-119279"},{"name":"OSV","id":"GHSA-797x-p4mc-jwpm","modified":"2026-10-30T23:15:05.687493406Z","url":"https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9},{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9}],"cve":{"records":[{"id":"CVE-2026-119279","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-29T18:50:28.064Z","published":"2026-10-29T20:52:22.903Z","modified":"2026-10-29T20:52:22.903Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-10-29T20:52:22.903Z"}],"references":[{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10","tags":["x_refsource_MISC"],"source":"GitHub_M"}],"weaknesses":[{"id":"CWE-130","description":"CWE-130: Improper Handling of Length Parameter Inconsistency","source":"GitHub_M"},{"id":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","source":"GitHub_M"}],"applicability":[],"prioritization":[]},"products":[{"vendor":"mariadb-corporation","name":"mariadb-connector-j","platforms":[],"versions":[{"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"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-119279"}],"remediation":[],"observedAt":"2026-10-30T23:32:44.522Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T06:50:31.295Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-10-30T02:05:31.037Z","attemptedAt":"2026-10-30T02:05:31.037Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-10-30T02:05:31.117Z","attemptedAt":"2026-10-30T02:05:31.117Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-30T02:05:31.035Z","attemptedAt":"2026-10-30T02:05:31.035Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-10-30T02:05:30.953Z","attemptedAt":"2026-10-30T02:05:30.953Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-113386","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113386","modified":"Oct 29, 2026, 8:52:22 PM","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","checkedAt":"2026-10-30T02:05:31.035Z"},{"source":"NVD","id":"CVE-2026-119279","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119279","modified":"2026-10-29T21:17:21.387","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","checkedAt":"2026-10-30T02:05:31.037Z"}],"aiSummary":null}