Low

MariaDB Connector/J: XA recover() trusted server-supplied gtrid and bqual lengths

  • Disclosed: 30.10.2026
  • Updated: 31.10.2026 01:17

Summary

XAResource.recover() in MariaDB Connector/J trusted the gtrid_length and bqual_length columns returned by XA RECOVER to allocate and split each Xid.

Details

MariaDbPoolConnection and MariaDbPoolPinnedConnection built each Xid of the recovery list by allocating new byte[gtrid_length] and new byte[bqual_length] and copying from the data column, without validating the lengths against the XA specification bounds (Xid.MAXGTRIDSIZE, Xid.MAXBQUALSIZE) or the actual payload. Negative or oversized lengths, or lengths that do not fit the data, ended in large allocations or unchecked exceptions (NegativeArraySizeException, ArrayIndexOutOfBoundsException) during recovery.

The fix validates the lengths before any allocation or copy and reports an invalid row as an XAException (XAER_RMFAIL).

Impact

Availability only, and limited to applications running XA recovery: a malicious or compromised server, or a MitM, can crash the recovery or drive large allocations. Exploitation requires control of the server side of the connection.

Credit

Reported by fg0x0

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
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

References

CVSS score 3.7/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness (CWE)
CWE-20, CWE-789
Platform
Java / Kotlin (Maven)
Package
org.mariadb.jdbc:mariadb-java-client
Disclosed
30.10.2026
Updated
31.10.2026 01:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4jq2-8v3c-97w8 - CC BY 4.0

Vulnerability history: org.mariadb.jdbc:mariadb-java-client

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (9) in the archive
Total entries
9
First → latest
08.2026 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Medium 7
  • Low 2

Disclosures per year

  1. 2026: 9
Severity:
  1. Medium · 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. Medium · 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. MariaDB Connector/J: XA recover() trusted server-supplied gtrid and bqual lengths this entry
    Low · 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. Medium · 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. Medium · 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. Low · 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. Medium · 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. Medium · 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. Medium · 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

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.