---
id: CVE-2026-119278
title: >-
  MariaDB Connector/J: Rogue server can crash the client during
  caching_sha2_password authentication
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 and 3.4.5, during
  caching_sha2_password authentication, the authentication-more-data response
  was treated as a l…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-129
  - CWE-789
vendor: mariadb-corporation
product: mariadb-connector-j
affected:
  - 'mariadb-connector-j >= 3.0.0, < 3.3.7'
  - 'mariadb-connector-j >= 3.4.0, < 3.4.5'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-30T15:20:41.784215Z'
published: '2026-10-29'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T16:00:11.050Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119278'
references:
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-r9vh-xh4r-j6gr
    label: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-r9vh-xh4r-j6gr
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/commit/1e32b7010485f090cc402528c334301432495fbe
    label: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/commit/1e32b7010485f090cc402528c334301432495fbe
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/commit/86a90b0dc9746aa3bd4aa1df264be22a2d1b7d98
    label: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/commit/86a90b0dc9746aa3bd4aa1df264be22a2d1b7d98
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
    label: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
  - url: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
    label: >-
      https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
tags:
  - cve.org
epss: 0.00364
epssPercentile: 0.30472
ingestedAt: '2026-11-05T16:24:31.054Z'
---

## Overview

MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. From 3.0.0 until 3.3.7 and 3.4.5, during caching_sha2_password authentication, the authentication-more-data response was treated as a length-encoded byte array, memory was allocated from the server-declared length, and authResult[0] was accessed without ensuring a byte existed. A malicious or compromised server, or a machine-in-the-middle attacker, could declare a very large length or send an empty response before any password was transmitted. The malformed packet could cause excessive allocation or an unchecked ArrayIndexOutOfBoundsException escaping from DriverManager.getConnection(). This issue is fixed in versions 3.3.7 and 3.4.5.

## Affected

- `mariadb-connector-j >= 3.0.0, < 3.3.7`
- `mariadb-connector-j >= 3.4.0, < 3.4.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
