Skip to main content

MariaDB Connector/J CVE-2026-119280

| EUVDEUVD-2026-113387 LOW
Improper Input Validation (CWE-20)
2026-10-29 GitHub_M GHSA-4jq2-8v3c-97w8
3.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control or MitM the DB server
  2. Delivery
    Client initiates XA recovery
  3. Exploit
    Return malicious gtrid/bqual lengths in XA RECOVER row
  4. Execution
    Trigger oversized allocation or unchecked exception
  5. Impact
    Crash recovery / denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires that the application actively invokes XA transaction recovery via MariaDbPoolConnection.recover() or MariaDbPoolPinnedConnection.recover() (i.e., uses distributed/XA transactions with pooled connections), and that the attacker controls the database server side of the connection - a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the client-server link. The attacker must be able to return a crafted XA RECOVER result with gtrid_length/bqual_length that are negative, exceed Xid.MAXGTRIDSIZE/MAXBQUALSIZE, or do not fit the data payload. Limiting factors: this is unreachable in applications that do not perform XA recovery, it requires server control (not mere network reachability, hence AC:H), and impact is confined to a crash or large allocation on the client (no confidentiality or integrity effect). Affected versions are 3.0.0 through the branch fixes 3.3.7, 3.4.5, and 3.5.11.

Impact

This is a low-priority, availability-only defect that does not warrant emergency handling. The CVSS 3.1 score is 3.7 (Low) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, and the GHSA advisory confirms the impact is 'Availability only.' The decision label in the input is 'monitor,' consistent with the low score. There is no CISA KEV listing and no EPSS value supplied, so there is no evidence of active or widespread exploitation; the status is no public exploit identified at time of analysis (the references are the vendor advisory and fix commits, not working exploit code). The high attack complexity (AC:H) reflects the real precondition captured in the advisory: the attacker must control the server side of the connection - a malicious/compromised MariaDB/MySQL server or a machine-in-the-middle - rather than being any network-adjacent party, which materially narrows the realistic threat. Although the CVSS vector carries PR:N (no client-side authentication required), note the attacker-side prerequisite is server control, not an unauthenticated foothold in the usual sense; this is a conflict worth stating explicitly. CWE-20 (improper input validation) with CWE-789 (uncontrolled memory allocation) in the advisory aligns with the described crash/large-allocation outcome. Overall: a genuine but minor DoS issue scoped to applications that perform XA transaction recovery.

Exploit ScenarioDerived

A Java application using MariaDB Connector/J performs XA transaction recovery against a database server that is attacker-controlled or reachable through a machine-in-the-middle. The server returns an XA RECOVER row with a negative or oversized gtrid_length/bqual_length (or lengths exceeding the data payload), causing the client to attempt a huge byte[] allocation or throw NegativeArraySizeException/ArrayIndexOutOfBoundsException, crashing recovery. No public working exploit is identified; exploitation requires control of the server side and that the application actually runs XA recovery, and the high complexity reflects this server-control requirement.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 29, 2026

MariaDB Connector/J (Maven org.mariadb.jdbc:mariadb-java-client) trusts the gtrid_length and bqual_length columns returned by XA RECOVER when building Xid objects in MariaDbPoolConnection.recover() and MariaDbPoolPinnedConnection.recover(), so a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the client-server link, can return negative, oversized, or payload-inconsistent lengths and drive large allocations, NegativeArraySizeException, or ArrayIndexOutOfBoundsException during XA recovery. Only applications that actually perform XA transaction recovery through those pooled-connection implementations are reachable, and the impact is availability-only on the client, which is why this carries a low CVSS score (3.7, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L); the driver versions concerned are 3.0.0 up to the 3.3.7, 3.4.5 and 3.5.11 fixes. No public exploit code was identified at time of analysis, and the issue is not flagged as actively exploited (no CISA KEV listing); priority guidance is to monitor and patch on a routine cycle.

RemediationAI

Upgrade the driver to a fixed release on your maintenance branch: 3.3.7, 3.4.5, or 3.5.11, all of which contain the validated MariaDbXid.fromRecoverRow() parsing path that rejects invalid server-supplied lengths with XAER_RMFAIL; the fixes are visible in commits https://github.com/mariadb-corporation/mariadb-connector-j/commit/280efcfb4390055858fa2dd12b722d85a6a13ab8, https://github.com/mariadb-corporation/mariadb-connector-j/commit/47aba5a23548b35191865a428cc674316b95ee47 and https://github.com/mariadb-corporation/mariadb-connector-j/commit/e9d767103bfd178ed57caa4cb97bbfbf7e54da6b, and the advisory is at https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-4jq2-8v3c-97w8. Until the upgrade is deployed, the practical exposure reduction is architectural: the flaw is only reachable when the application invokes XA recovery via MariaDbPoolConnection.recover() or MariaDbPoolPinnedConnection.recover(), so applications that do not use distributed/XA transactions with pooled connections are not exposed, and for those that do, the attacker must control the server side of the connection (compromised database server or a man-in-the-middle on the client-server link), so enforcing server identity verification and trusted network paths to the database reduces the attack surface. No separate vendor-issued workaround beyond upgrading is described in the available sources.

Affected VersionsENISA

mariadb-connector-j 3.5.0, < 3.5.11
mariadb-connector-j 3.0.0, < 3.3.7
mariadb-connector-j 3.4.0, < 3.4.5

Affected Packages

maven org.mariadb.jdbc:mariadb-java-client fix: 3.3.7, 3.4.5, 3.5.11
euvd mariadb_connector_j fix: 3.3.7, 3.4.5, 3.5.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MariaDB Connector/J implements the JDBC 4 XA (distributed transaction) API. In XA recovery, the driver issues XA RECOVER and receives rows of formatId, gtrid_length, bqual_length and a single data column in which the global transaction identifier (gtrid) and branch qualifier (bqual) are concatenated. The vulnerable code in MariaDbPoolConnection and MariaDbPoolPinnedConnection allocated new byte[gtrid_length] and new byte[bqual_length] and then used System.arraycopy to split the data payload, without checking the lengths against the XA specification bounds Xid.MAXGTRIDSIZE and Xid.MAXBQUALSIZE or against the size of the actual data payload. The root cause class is CWE-20 improper input validation (the advisory also tags CWE-789 uncontrolled memory allocation): server-supplied metadata is used directly as an allocation size and array index, so a negative length triggers NegativeArraySizeException, an excessive length triggers a very large allocation, and lengths that do not fit the payload trigger ArrayIndexOutOfBoundsException. The upstream fix moves the parsing into a new MariaDbXid.fromRecoverRow() factory that null-guards the payload, rejects negative lengths, rejects lengths above MAXGTRIDSIZE/MAXBQUALSIZE, and rejects gtrid+bqual sums that exceed the available bytes (computed in long to avoid int wraparound), converting any invalid row into an XAException with error code XAER_RMFAIL. Unit tests were added in MariaDbXidTest covering valid rows, empty bqual, maximum allowed sizes, oversized and int-overflowing length pairs.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

Attacker must control the server side or MitM the link and the app must run XA recovery (AC:H); no client auth needed (PR:N); impact is a client-side crash/allocation only, so availability-low and no C/I.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 21:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
common Java JDBC driver for MariaDB/MySQL, but XA recovery usage is niche
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy