{"id":"CVE-2026-119280","aliases":["CVE-2026-119280","GHSA-4jq2-8v3c-97w8"],"related":[],"kind":"vulnerability","state":"published","title":"MariaDB Connector/J : XA recover() trusted server-supplied gtrid and bqual lengths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`XAResource.recover()` in MariaDB Connector/J trusted the `gtrid_length` and\n`bqual_length` columns returned by `XA RECOVER` to allocate and split each Xid.\n\n## Details\n\n`MariaDbPoolConnection` and `MariaDbPoolPinnedConnection` built each `Xid` of\nthe recovery list by allocating `new byte[gtrid_length]` and\n`new byte[bqual_length]` and copying from the `data` column, without validating\nthe lengths against the XA specification bounds (`Xid.MAXGTRIDSIZE`,\n`Xid.MAXBQUALSIZE`) or the actual payload. Negative or oversized lengths, or\nlengths that do not fit the data, ended in large allocations or unchecked\nexceptions (`NegativeArraySizeException`, `ArrayIndexOutOfBoundsException`)\nduring recovery.\n\nThe fix validates the lengths before any allocation or copy and reports an\ninvalid row as an `XAException` (`XAER_RMFAIL`).\n\n## Impact\n\nAvailability only, and limited to applications running XA recovery: a malicious\nor compromised server, or a MitM, can crash the recovery or drive large\nallocations. Exploitation requires control of the server side of the connection.\n\n## Credit\n\nReported by fg0x0","format":"markdown","source":"ghsa"}],"published":"2026-10-29T20:55:50.101Z","modified":"2026-10-30T23:15:05.680Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"}],"cwes":["CWE-20","CWE-789"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.3.7","status":"affected"},{"version":">= 3.4.0, < 3.4.5","status":"affected"},{"version":">= 3.5.0, < 3.5.11","status":"affected"}],"vendor":"mariadb-corporation","product":"mariadb-connector-j","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.3.7"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.4.0","status":"affected","fixed":"3.4.5"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.5.0","status":"affected","fixed":"3.5.11"}],"ecosystem":"Maven","package":"org.mariadb.jdbc:mariadb-java-client","purl":"pkg:maven/org.mariadb.jdbc/mariadb-java-client","source":"ghsa"}],"references":[{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-4jq2-8v3c-97w8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/280efcfb4390055858fa2dd12b722d85a6a13ab8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/47aba5a23548b35191865a428cc674316b95ee47","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/commit/e9d767103bfd178ed57caa4cb97bbfbf7e54da6b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119280","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mariadb-corporation/mariadb-connector-j","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-30T17:09:58.150Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-119280","url":"https://www.cve.org/CVERecord?id=CVE-2026-119280","licence":"CVE Terms of Use","modified":"2026-10-30T17:10:10.174Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4jq2-8v3c-97w8","url":"https://github.com/advisories/GHSA-4jq2-8v3c-97w8","licence":"CC-BY-4.0","modified":"2026-10-30T23:15:05.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-119280","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119280","licence":"Public domain","modified":"2026-10-30T17:18:03.880Z"}],"updatedAt":"2026-11-25T22:59:47.841Z","epss":{"score":0.00499,"percentile":0.35725,"date":"2026-11-30T12:00:22.000Z"}}