Media

MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets

  • Publicada: 30.10.2026
  • Actualizado: 31.10.2026 01:17

Summary

MariaDB Connector/J sized heap allocations from lengths declared by the server in OK packets before checking that those lengths fit in the packet. A rogue or MitM server can make the client allocate megabytes from a packet of a few bytes.

Details

When CLIENT_SESSION_TRACK is negotiated (the default), an OK packet carries an info field followed by session-state blocks, each tracked variable being sent as a length-encoded name and value. OkPacket.parse() and parseWithInfo() allocated new byte[len] for the info field, the variable name and the value with the server-declared len, then copied the packet data into it. The copy failed with an ArrayIndexOutOfBoundsException when the packet was shorter, but only after the allocation had taken place.

A server-declared length of 8 MiB in an 18-byte packet was enough to trigger an 8 MiB allocation; the integer-range validation of length-encoded values does not help, since such lengths are valid positive integers.

The fix validates every server-declared length against the remaining packet bytes before any allocation (ReadableByteBuf.checkLength() and a bounded readBytes(int)), and stops reading the session state at the first inconsistent entry.

Impact

Availability only: a malicious or compromised server, or a MitM, can drive attacker-controlled heap allocations on every OK packet, creating GC pressure up to OutOfMemoryError in the client application. Exploitation requires control of the server side of the connection; no authentication bypass, confidentiality or integrity impact.

Credit

Reported by fg0x0

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Java / Kotlin (Maven) org.mariadb.jdbc:mariadb-java-client >= 3.0.0, < 3.3.7, >= 3.4.0, < 3.4.5, >= 3.5.0, < 3.5.11 3.3.7, 3.4.5, 3.5.11

Referencias

Puntuación CVSS 5.9/10
Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Debilidad (CWE)
CWE-130, CWE-789
Plataforma
Java / Kotlin (Maven)
Paquete
org.mariadb.jdbc:mariadb-java-client
Publicada
30.10.2026
Actualizado
31.10.2026 01:17

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-h599-m3w5-9m7x - CC BY 4.0

Historial de vulnerabilidades: org.mariadb.jdbc:mariadb-java-client

Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (9) en el archivo
Entradas en total
9
Primera → última
08.2026 10.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Media 7
  • Baja 2

Divulgaciones por año

  1. 2026: 9
Gravedad:
  1. MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets esta entrada
    Media · 5.9 CVE-2026-119276 >= 3.0.0, < 3.3.7, >= 3.4.0, < 3.4.5, >= 3.5.0, < 3.5.11 3.3.7, 3.4.5, 3.5.11
  2. Media · 5.9 CVE-2026-119279 >= 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
  3. Baja · 3.7 CVE-2026-119280 >= 3.0.0, < 3.3.7, >= 3.4.0, < 3.4.5, >= 3.5.0, < 3.5.11 3.3.7, 3.4.5, 3.5.11
  4. Media · 5.9 CVE-2026-119210 >= 3.0.0, < 3.3.7, >= 3.4.0, < 3.4.5, >= 3.5.0, < 3.5.11 3.3.7, 3.4.5, 3.5.11
  5. Media · 5.9 CVE-2026-119281 >= 3.0.0, < 3.3.7, >= 3.4.0, < 3.4.5, >= 3.5.0, < 3.5.11 3.3.7, 3.4.5, 3.5.11
  6. Baja · 3.7 CVE-2026-61700 < 2.7.14, >= 3.0.0, < 3.3.5, >= 3.4.0, < 3.4.3, >= 3.5.0, < 3.5.9 2.7.14, 3.3.5, 3.4.3, 3.5.9
  7. Media · 5.9 CVE-2026-55858 < 2.7.14, >= 3.0.0, < 3.3.5, >= 3.4.0, < 3.4.3, >= 3.5.0, < 3.5.9 2.7.14, 3.3.5, 3.4.3, 3.5.9
  8. Media · 5.9 CVE-2026-55857 < 2.7.14, >= 3.0.0, < 3.3.5, >= 3.4.0, < 3.4.3, >= 3.5.0, < 3.5.9 2.7.14, 3.3.5, 3.4.3, 3.5.9
  9. Media · 5.9 CVE-2026-55856 < 2.7.14, >= 3.0.0, < 3.3.5, >= 3.4.0, < 3.4.3, >= 3.5.0, < 3.5.9 2.7.14, 3.3.5, 3.4.3, 3.5.9

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.