---
id: "CVE-2026-119280"
kind: "vulnerability"
aliases: ["CVE-2026-119280"]
title: "MariaDB Connector/J: XA recovery trusts server lengths, enabling crashes and large allocations"
severity: "low"
cvss: 3.7
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["java", "jdbc", "mariadb", "mysql", "package", "xa-transactions"]
not_affected_if: ["fixed-version", "no-xa-transactions", "other-jdbc-driver"]
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:55+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119280", "first_seen_at": "2026-10-29T21:26:52+00:00"}]
---

# MariaDB Connector/J: XA recovery trusts server lengths, enabling crashes and large allocations

MariaDB Connector/J is a Java library for connecting applications to MariaDB and MySQL. A malicious or compromised database server, or an attacker in the middle, can send crafted XA RECOVER lengths that cause huge memory allocations or exceptions during recovery.

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

## Fix

- `mariadb-java-client` 3.3.7
- `mariadb-java-client` 3.4.5
- `mariadb-java-client` 3.5.11

## Timeline

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

## 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, the MariaDbPoolConnection.recover() and MariaDbPoolPinnedConnection.recover() implementations trusted the gtrid_length and bqual_length columns returned by XA RECOVER. The methods allocated and split Xid byte arrays without validating the lengths against Xid.MAXGTRIDSIZE, Xid.MAXBQUALSIZE, or the actual data payload. A malicious or compromised server, or a machine-in-the-middle attacker, could cause large allocations, NegativeArraySizeException, or ArrayIndexOutOfBoundsException during XA recovery. 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_
