mariadb@3.5.3

fast mariadb or mysql connector.

  • latest version

    3.5.5

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mariadb 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
    SQL Injection

    Affected versions of this package are vulnerable to SQL Injection via the text protocol escape logic in lib/io/packet-output-stream.js when the server session has the NO_BACKSLASH_ESCAPES mode enabled. In that mode, backslash is an ordinary character, so escaping a single quote with a backslash leaves the quote intact and closes the string literal, allowing an attacker to inject arbitrary SQL through user-supplied string values.

    Note: This is only exploitable when the MariaDB server session uses the NO_BACKSLASH_ESCAPES SQL mode.

    How to fix SQL Injection?

    Upgrade mariadb to version 3.2.5, 3.3.4, 3.4.7, 3.5.4 or higher.

    <3.2.5>=3.3.0 <3.3.4>=3.4.0 <3.4.7>=3.5.1 <3.5.4
    • C
    SQL Injection

    Affected versions of this package are vulnerable to SQL Injection via object key interpolation in SET clause expansion in text-encoder.js, query.js, and utils.js. When an object is passed as a query parameter with the permitSetMultiParamEntries option enabled, each key is expanded into a column name identifier in the generated SET clause. Prior to the fix, keys are interpolated directly as backtick-quoted identifiers without escaping any backtick characters they contain, allowing an attacker who controls an object key to break out of the identifier context and inject arbitrary SQL.

    Note: This is only exploitable if the permitSetMultiParamEntries option is explicitly enabled.

    How to fix SQL Injection?

    Upgrade mariadb to version 3.2.5, 3.3.4, 3.4.7, 3.5.4 or higher.

    >=3.2.0 <3.2.5>=3.3.0 <3.3.4>=3.4.0 <3.4.7>=3.5.1 <3.5.4
    • H
    Use of Uninitialized Resource

    Affected versions of this package are vulnerable to Use of Uninitialized Resource via the GeoJSON Polygon and MultiPolygon encoding path in lib/cmd/encoder/binary-encoder.js when a ring element within the coordinates array is not a real array. The encoder sizes the output buffer using Buffer.allocUnsafe based on each ring's length property, then writes coordinate data only when the ring passes an Array.isArray check. When a non-array ring is supplied, the writing loop is skipped while the allocated bytes remain uninitialized, causing process heap memory to be transmitted to the database server in the binary protocol packet. An attacker who can supply GeoJSON Polygon or MultiPolygon query parameters can leak arbitrary Node.js process memory to the server.

    How to fix Use of Uninitialized Resource?

    Upgrade mariadb to version 3.2.5, 3.3.4, 3.4.7, 3.5.4 or higher.

    <3.2.5>=3.3.0 <3.3.4>=3.4.0 <3.4.7>=3.5.1 <3.5.4
    • H
    Uncaught Exception

    Affected versions of this package are vulnerable to Uncaught Exception via a defect in the hash method of ed25519-password-auth.js during zero-configuration SSL handshakes. The original hash method incorrectly returns an intermediate SHA-512 digest r (the nonce scalar) instead of the derived Ed25519 public key, causing the authentication exchange to produce an incorrect value. When a server attempts to verify the client's identity against the stored public key under zero-conf SSL, the mismatch causes the connection to fail, resulting in a crash of the authentication flow and a denial of service.

    How to fix Uncaught Exception?

    Upgrade mariadb to version 3.5.4 or higher.

    >=3.3.0 <3.5.4