Mariadb Connector J
Monthly
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.
Truncation of oversized length-encoded integers in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) lets a malicious, compromised, or man-in-the-middle server crash or destabilize Java client connection handling. Versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.9 narrow the protocol's unsigned 8-byte length-encoded integer to a Java int without range validation, so a value above Integer.MAX_VALUE wraps to a negative or unrelated length that is then used to size allocations or reads, producing NegativeArraySizeException, out-of-bounds failures, or oversized allocations. Impact is availability-only (no confidentiality or integrity effect) and exploitation requires control of the server side of the connection; no public exploit code has been identified at time of analysis, and the issue is not in CISA KEV.
Connection-establishment denial of service in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) 3.0.0 through 3.3.6 and 3.4.0 through 3.4.4 stems from the caching_sha2_password plugin trusting a server-declared length in the authentication-more-data packet and then indexing the resulting buffer without confirming it held a byte. A malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the TCP connection, can therefore drive a very large heap allocation or trigger an unchecked ArrayIndexOutOfBoundsException that escapes DriverManager.getConnection(), crashing the application during connection setup before any password is transmitted - so availability only, with no credential exposure, data access, or code execution. The vector is AV:N/AC:H/PR:N/UI:N with C:N/I:N/A:H (5.9), the high attack complexity reflecting the prerequisite that the attacker occupy the server side of the connection; connections to trusted servers over certificate-verified TLS sharply reduce realistic exposure. No public exploit code and no CISA KEV entry were identified at time of analysis, and vendor patches are released as 3.3.7 and 3.4.5, with the maintainers' advisory rating this a moderate-priority availability fix rather than an emergency.
Out-of-bounds reads in the packet decoders of MariaDB Connector/J can crash the client's connection handling: a rogue or compromised MariaDB/MySQL server, or a machine-in-the-middle on the connection path, can declare lengths larger than the bytes actually remaining in a packet and drive unchecked ArrayIndexOutOfBoundsException or IllegalArgumentException failures out of ordinary JDBC calls instead of a clean SQLException. All releases from 3.0.0 up to the fixes are affected - 3.3.0-3.3.6, 3.4.0-3.4.4 and 3.5.0-3.5.10 - and impact is strictly availability-side (CVSS 5.9, C:N/I:N/A:H), since the GHSA advisory explicitly rules out authentication bypass, confidentiality and integrity impact. Exploitation requires the attacker to already control the server side of the connection or hold a MitM position; no client credentials or user interaction are needed once that position exists. No public exploit code and no confirmed active exploitation were identified at time of analysis.
Heap-exhaustion denial of service in MariaDB Connector/J (the Java client published as org.mariadb.jdbc:mariadb-java-client) affects versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.10: a malicious or compromised MariaDB/MySQL server, or an attacker in a machine-in-the-middle position, can send a tiny OK packet that declares multi-megabyte field lengths and force repeated attacker-sized heap allocations in the client JVM. The result is garbage-collection pressure up to an OutOfMemoryError, so the impact is availability only - no confidentiality, integrity, or code-execution effect. Exploitation requires control of the server side of the connection or interception of the client-to-server link; a TLS-protected connection to a trusted server removes the MitM path, and no public exploit code has been identified at time of analysis. This is a moderate-severity issue suited to routine monthly patching rather than emergency response.
Arbitrary client-host file disclosure in MariaDB Connector/J affects the 3.0.x branch before 3.3.7, the 3.4.x branch before 3.4.5, and the 3.5.x branch before 3.5.11: a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle positioned on the client-server link, can cause the JDBC driver to stream any file readable by the client JVM back to the attacker. The driver's ClientMessage.validateLocalFileName() check used a regular expression that matched 'LOAD DATA LOCAL INFILE' text appearing anywhere in the outgoing SQL, including inside backtick-quoted identifiers, string literals and comments, so server-returned identifiers reused by DatabaseMetaData.getImportedKeys(), getExportedKeys() or ResultSet.updateRow() could satisfy the check and trigger a LOCAL INFILE request for an attacker-chosen path. Exploitation additionally requires the allowLocalInfile connection property to be enabled, which the advisory states is the default; there is no confirmed evidence of active exploitation and no public exploit was identified at time of analysis, though the CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, 5.9) reflects a high-confidentiality-impact issue gated on server-side control or a MitM position.
MariaDB Connector/J versions prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9 can be tricked into transmitting a locally selected file to a rogue or man-in-the-middle database server even when the allowLocalInfile option is explicitly set to false, because the connector processes a server-initiated LOCAL INFILE packet (0xfb) without honoring that setting. The exposure is narrow: the attacker can only receive the exact file the application already chose to load via a LOAD DATA LOCAL INFILE COM_QUERY, cannot redirect the request to an arbitrary path, and gains nothing unless the application organically loads sensitive data over an untrusted connection - so this is a low-severity (CVSS 3.7), highly conditional information-disclosure issue rather than a widespread threat. The vulnerability is unauthenticated at the network layer per the vector (PR:N) but requires high attack complexity (AC:H) and control of the server or the connection path; no public exploit code has been identified at time of analysis, and the flaw is fixed in the four versions listed above.
Charset-confusion in MariaDB Connector/J (all branches prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9) allows a server-side character set change mid-session to silently decouple the driver's UTF-8 encoding assumption from the server's active encoding. Because the driver continues escaping SQL string literals as UTF-8 while the server parses incoming bytes under a different multi-byte encoding (e.g., GBK or BIG5), the mismatch can defeat byte-wise SQL quoting and enable SQL injection - a well-documented attack class for charset-confusion primitives. No public exploit has been identified and this CVE is not listed in CISA KEV at time of analysis.
MariaDB Connector/J exposes database account passwords in cleartext to on-path attackers or hostile servers when PAM (dialog) authentication is used over plain TCP. The driver's PAM handler (SendPamAuthPacketFactory, plugin name 'dialog') failed to override the requireSsl() gate that correctly protects its sibling mysql_clear_password plugin, inheriting a default value of false and thus omitting the secure-transport requirement. Under the default connector configuration (sslMode=DISABLE, restrictedAuth=null), a man-in-the-middle or rogue server can issue an Authentication Switch Request for the dialog plugin and receive the account password in cleartext, granting full credential reuse against the real database. No public exploit has been identified and the vulnerability is not listed in CISA KEV, but the attack mechanics are straightforward for any on-path attacker against affected deployments.
Cleartext database password disclosure in MariaDB Connector/J (all versions before 2.7.14, 3.3.5, 3.4.3, and 3.5.9) allows an active network man-in-the-middle to capture a victim application's full database password during the initial TLS handshake. The connector's initial-handshake code path transmits a mysql_clear_password authentication response before validating the certificate fingerprint that is supposed to enforce server identity - a guard that the OK-packet and auth-switch paths correctly enforce but that HandshakeResponse.encode() bypasses entirely. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code is identified at time of analysis, though the vulnerability mechanism is fully documented in a vendor-published HackerOne report and GHSA advisory.
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.
Truncation of oversized length-encoded integers in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) lets a malicious, compromised, or man-in-the-middle server crash or destabilize Java client connection handling. Versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.9 narrow the protocol's unsigned 8-byte length-encoded integer to a Java int without range validation, so a value above Integer.MAX_VALUE wraps to a negative or unrelated length that is then used to size allocations or reads, producing NegativeArraySizeException, out-of-bounds failures, or oversized allocations. Impact is availability-only (no confidentiality or integrity effect) and exploitation requires control of the server side of the connection; no public exploit code has been identified at time of analysis, and the issue is not in CISA KEV.
Connection-establishment denial of service in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) 3.0.0 through 3.3.6 and 3.4.0 through 3.4.4 stems from the caching_sha2_password plugin trusting a server-declared length in the authentication-more-data packet and then indexing the resulting buffer without confirming it held a byte. A malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the TCP connection, can therefore drive a very large heap allocation or trigger an unchecked ArrayIndexOutOfBoundsException that escapes DriverManager.getConnection(), crashing the application during connection setup before any password is transmitted - so availability only, with no credential exposure, data access, or code execution. The vector is AV:N/AC:H/PR:N/UI:N with C:N/I:N/A:H (5.9), the high attack complexity reflecting the prerequisite that the attacker occupy the server side of the connection; connections to trusted servers over certificate-verified TLS sharply reduce realistic exposure. No public exploit code and no CISA KEV entry were identified at time of analysis, and vendor patches are released as 3.3.7 and 3.4.5, with the maintainers' advisory rating this a moderate-priority availability fix rather than an emergency.
Out-of-bounds reads in the packet decoders of MariaDB Connector/J can crash the client's connection handling: a rogue or compromised MariaDB/MySQL server, or a machine-in-the-middle on the connection path, can declare lengths larger than the bytes actually remaining in a packet and drive unchecked ArrayIndexOutOfBoundsException or IllegalArgumentException failures out of ordinary JDBC calls instead of a clean SQLException. All releases from 3.0.0 up to the fixes are affected - 3.3.0-3.3.6, 3.4.0-3.4.4 and 3.5.0-3.5.10 - and impact is strictly availability-side (CVSS 5.9, C:N/I:N/A:H), since the GHSA advisory explicitly rules out authentication bypass, confidentiality and integrity impact. Exploitation requires the attacker to already control the server side of the connection or hold a MitM position; no client credentials or user interaction are needed once that position exists. No public exploit code and no confirmed active exploitation were identified at time of analysis.
Heap-exhaustion denial of service in MariaDB Connector/J (the Java client published as org.mariadb.jdbc:mariadb-java-client) affects versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.10: a malicious or compromised MariaDB/MySQL server, or an attacker in a machine-in-the-middle position, can send a tiny OK packet that declares multi-megabyte field lengths and force repeated attacker-sized heap allocations in the client JVM. The result is garbage-collection pressure up to an OutOfMemoryError, so the impact is availability only - no confidentiality, integrity, or code-execution effect. Exploitation requires control of the server side of the connection or interception of the client-to-server link; a TLS-protected connection to a trusted server removes the MitM path, and no public exploit code has been identified at time of analysis. This is a moderate-severity issue suited to routine monthly patching rather than emergency response.
Arbitrary client-host file disclosure in MariaDB Connector/J affects the 3.0.x branch before 3.3.7, the 3.4.x branch before 3.4.5, and the 3.5.x branch before 3.5.11: a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle positioned on the client-server link, can cause the JDBC driver to stream any file readable by the client JVM back to the attacker. The driver's ClientMessage.validateLocalFileName() check used a regular expression that matched 'LOAD DATA LOCAL INFILE' text appearing anywhere in the outgoing SQL, including inside backtick-quoted identifiers, string literals and comments, so server-returned identifiers reused by DatabaseMetaData.getImportedKeys(), getExportedKeys() or ResultSet.updateRow() could satisfy the check and trigger a LOCAL INFILE request for an attacker-chosen path. Exploitation additionally requires the allowLocalInfile connection property to be enabled, which the advisory states is the default; there is no confirmed evidence of active exploitation and no public exploit was identified at time of analysis, though the CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, 5.9) reflects a high-confidentiality-impact issue gated on server-side control or a MitM position.
MariaDB Connector/J versions prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9 can be tricked into transmitting a locally selected file to a rogue or man-in-the-middle database server even when the allowLocalInfile option is explicitly set to false, because the connector processes a server-initiated LOCAL INFILE packet (0xfb) without honoring that setting. The exposure is narrow: the attacker can only receive the exact file the application already chose to load via a LOAD DATA LOCAL INFILE COM_QUERY, cannot redirect the request to an arbitrary path, and gains nothing unless the application organically loads sensitive data over an untrusted connection - so this is a low-severity (CVSS 3.7), highly conditional information-disclosure issue rather than a widespread threat. The vulnerability is unauthenticated at the network layer per the vector (PR:N) but requires high attack complexity (AC:H) and control of the server or the connection path; no public exploit code has been identified at time of analysis, and the flaw is fixed in the four versions listed above.
Charset-confusion in MariaDB Connector/J (all branches prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9) allows a server-side character set change mid-session to silently decouple the driver's UTF-8 encoding assumption from the server's active encoding. Because the driver continues escaping SQL string literals as UTF-8 while the server parses incoming bytes under a different multi-byte encoding (e.g., GBK or BIG5), the mismatch can defeat byte-wise SQL quoting and enable SQL injection - a well-documented attack class for charset-confusion primitives. No public exploit has been identified and this CVE is not listed in CISA KEV at time of analysis.
MariaDB Connector/J exposes database account passwords in cleartext to on-path attackers or hostile servers when PAM (dialog) authentication is used over plain TCP. The driver's PAM handler (SendPamAuthPacketFactory, plugin name 'dialog') failed to override the requireSsl() gate that correctly protects its sibling mysql_clear_password plugin, inheriting a default value of false and thus omitting the secure-transport requirement. Under the default connector configuration (sslMode=DISABLE, restrictedAuth=null), a man-in-the-middle or rogue server can issue an Authentication Switch Request for the dialog plugin and receive the account password in cleartext, granting full credential reuse against the real database. No public exploit has been identified and the vulnerability is not listed in CISA KEV, but the attack mechanics are straightforward for any on-path attacker against affected deployments.
Cleartext database password disclosure in MariaDB Connector/J (all versions before 2.7.14, 3.3.5, 3.4.3, and 3.5.9) allows an active network man-in-the-middle to capture a victim application's full database password during the initial TLS handshake. The connector's initial-handshake code path transmits a mysql_clear_password authentication response before validating the certificate fingerprint that is supposed to enforce server identity - a guard that the OK-packet and auth-switch paths correctly enforce but that HandshakeResponse.encode() bypasses entirely. No active exploitation has been confirmed (not in CISA KEV) and no public exploit code is identified at time of analysis, though the vulnerability mechanism is fully documented in a vendor-published HackerOne report and GHSA advisory.