org.mariadb.jdbc:mariadb-java-client@3.5.3

  • latest version

    4.0.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    18 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mariadb.jdbc:mariadb-java-client package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Out-of-bounds Read

    Affected versions of this package are vulnerable to Out-of-bounds Read through the processing of server-declared packet lengths in decoders for session-state blocks, column definition packets, text row data, or binary row data. An attacker can cause the client to read beyond the intended packet boundary and terminate connection handling by sending specially crafted packets from a malicious or compromised server, or via a machine-in-the-middle attack.

    How to fix Out-of-bounds Read?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.11 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.11)
    • H
    External Control of File Name or Path

    Affected versions of this package are vulnerable to External Control of File Name or Path via the ClientMessage.validateLocalFileName process. An attacker can access arbitrary files from the client host by controlling the server side of the connection and leveraging standard java.sql calls such as DatabaseMetaData.getImportedKeys, getExportedKeys, or ResultSet.updateRow. This is only exploitable if the server is malicious or compromised, a man-in-the-middle attack is present, and allowLocalInfile is enabled on the client.

    How to fix External Control of File Name or Path?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.11 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.11)
    • H
    Integer Overflow or Wraparound

    Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the readLength process. An attacker can cause the client to crash or trigger excessive memory allocations by sending specially crafted length-encoded integers from a malicious or compromised server.

    How to fix Integer Overflow or Wraparound?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.10 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.10)
    • H
    Inappropriate Encoding for Output Context

    Affected versions of this package are vulnerable to Inappropriate Encoding for Output Context through the handling of character_set_results and session tracking. An attacker can alter the encoding of result data without detection by manipulating session variables on the server side, causing applications to misinterpret string data and potentially bypass validation or escaping mechanisms. This is only exploitable if the attacker has control over the server side of the connection or can perform a man-in-the-middle attack.

    How to fix Inappropriate Encoding for Output Context?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.11 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.11)
    • H
    Memory Allocation with Excessive Size Value

    Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the OkPacket.parse process. An attacker can exhaust system memory and cause application instability or crashes by sending specially crafted packets with large server-declared lengths, leading to excessive heap allocations.

    How to fix Memory Allocation with Excessive Size Value?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.11 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.11)
    • M
    Memory Allocation with Excessive Size Value

    Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the XAResource.recover process. An attacker can cause application crashes or force excessive memory allocations by supplying malicious values for gtrid_length and bqual_length from a compromised or malicious server during XA recovery.

    How to fix Memory Allocation with Excessive Size Value?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 3.3.7, 3.4.5, 3.5.11 or higher.

    [3.0.0,3.3.7)[3.4.0,3.4.5)[3.5.0,3.5.11)
    • M
    Access Control Bypass

    Affected versions of this package are vulnerable to Access Control Bypass through the ClientMessage server-initiated LOCAL INFILE handling in src/main/java/org/mariadb/jdbc/message/ClientMessage.java. An attacker can make the client send a local file by replying to a LOAD DATA LOCAL INFILE request with a 0xfb LOCAL INFILE packet even when local infile support is disabled. This lets a rogue or man-in-the-middle server read the file the application already named in its query, exposing that file’s contents to the attacker and defeating the intended allowLocalInfile=false safeguard.

    How to fix Access Control Bypass?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 2.7.14, 3.3.5, 3.4.3, 3.5.9 or higher.

    [,2.7.14)[3.0.0,3.3.5)[3.4.0,3.4.3)[3.5.0,3.5.9)
    • H
    Inappropriate Encoding for Output Context

    Affected versions of this package are vulnerable to Inappropriate Encoding for Output Context in the connection process. An attacker can cause silent data corruption and potentially bypass input sanitization by manipulating the character set mid-session, leading to a mismatch between client and server encoding interpretations.

    How to fix Inappropriate Encoding for Output Context?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 2.7.14, 3.3.5, 3.4.3, 3.5.9 or higher.

    [,2.7.14)[3.0.0,3.3.5)[3.4.0,3.4.3)[3.5.0,3.5.9)
    • H
    Insufficiently Protected Credentials

    Affected versions of this package are vulnerable to Insufficiently Protected Credentials in the initial-handshake process. An attacker can intercept and obtain database credentials by performing a man-in-the-middle attack during the authentication exchange when the connection is established with TLS verification enabled but without a pinned server certificate. This is only exploitable if the client is configured with sslMode=verify-full or verify-ca, uses a password, and does not pin the server certificate.

    How to fix Insufficiently Protected Credentials?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 2.7.14, 3.3.5, 3.4.3, 3.5.9 or higher.

    [,2.7.14)[3.0.0,3.3.5)[3.4.0,3.4.3)[3.5.0,3.5.9)
    • H
    Insufficiently Protected Credentials

    Affected versions of this package are vulnerable to Insufficiently Protected Credentials via the SendPamAuthPacketFactory process. An attacker can obtain sensitive authentication credentials by intercepting network traffic or acting as a man-in-the-middle server during the authentication process. This is only exploitable if connections are made over plain TCP (sslMode=DISABLE) or a TLS mode that does not properly verify server identity, and the attacker can occupy an on-path position or control the server to present an Authentication Switch Request for the dialog plugin.

    How to fix Insufficiently Protected Credentials?

    Upgrade org.mariadb.jdbc:mariadb-java-client to version 2.7.14, 3.3.5, 3.4.3, 3.5.9 or higher.

    [,2.7.14)[3.0.0,3.3.5)[3.4.0,3.4.3)[3.5.0,3.5.9)