---
id: "CVE-2026-119277"
kind: "vulnerability"
aliases: ["CVE-2026-119277"]
title: "MariaDB Connector/J: malformed server packets crash Java database connections"
severity: "medium"
cvss: 5.9
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["java", "jdbc", "mariadb", "mysql", "package"]
not_affected_if: ["versions-outside-affected-range"]
published_at: "2026-10-29T21:17:21+00:00"
first_seen_at: "2026-10-29T21:26:52+00:00"
updated_at: "2026-10-29T21:28:47+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119277", "first_seen_at": "2026-10-29T21:26:52+00:00"}]
---

# MariaDB Connector/J: malformed server packets crash Java database connections

Connector/J decodes server packets using lengths the server declares without checking the bytes exist, so a malformed packet raises unchecked exceptions. The result is a terminated connection and failed JDBC calls, which a malicious server or a machine-in-the-middle can trigger.

_Summary, check and fix written by a model from the sources; labelled as such._

## Fix

- Upgrade to `3.3.7` on the 3.3 line
- Upgrade to `3.4.5` on the 3.4 line
- Upgrade to `3.5.11` on the 3.5 line

## Timeline

- 2026-10-29T21:26:52+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119277

## From the sources

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.11, decoders for OK packet session-state blocks, column definition packets, text row data, or binary row data used server-declared lengths without confirming that the requested bytes remained in the receive buffer. The decoders could position reads, create sub-buffers, or decode strings beyond the packet boundary. A malicious or compromised server, or a machine-in-the-middle attacker, could trigger unchecked ArrayIndexOutOfBoundsException or IllegalArgumentException failures inside JDBC calls and terminate connection handling. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
