CVE-2026-61700: Mariadb java client Remote Code Execution Vulnerability

LOW
Advisory Identifier: GHSA-wxmm-q36w-r9xj
CVSS 3.7
CWE-284
Published
Advisory Summary

CVE-2026-61700 is a LOW (CVSS 3.7) remote code execution vulnerability (CWE-284: Improper Access Control) affecting Mariadb java client libraries in the Maven ecosystem. The issue involves mariadb connector/j does not enforce allowlocalinfile=false on server-initiated local infile requests. Remediation is available by upgrading affected packages to version 2.7.14, 3.3.5, 3.4.3, 3.5.9.

CVE-2026-61700 at a Glance

CVE Identifier CVE-2026-61700
GHSA Identifier GHSA-wxmm-q36w-r9xj
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-284: Improper Access Control
Affected Product Mariadb java client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-61700

To remediate this vulnerability, upgrade all affected Mariadb java client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.mariadb.jdbc:mariadb-java-client fixed: 2.7.14
<dependency>
    <groupId>org.mariadb.jdbc</groupId>
    <artifactId>mariadb-java-client</artifactId>
    <version>2.7.14</version>
</dependency>
org.mariadb.jdbc:mariadb-java-client fixed: 3.3.5
<dependency>
    <groupId>org.mariadb.jdbc</groupId>
    <artifactId>mariadb-java-client</artifactId>
    <version>3.3.5</version>
</dependency>
org.mariadb.jdbc:mariadb-java-client fixed: 3.4.3
<dependency>
    <groupId>org.mariadb.jdbc</groupId>
    <artifactId>mariadb-java-client</artifactId>
    <version>3.4.3</version>
</dependency>
org.mariadb.jdbc:mariadb-java-client fixed: 3.5.9
<dependency>
    <groupId>org.mariadb.jdbc</groupId>
    <artifactId>mariadb-java-client</artifactId>
    <version>3.5.9</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.mariadb.jdbc

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-61700, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.mariadb.jdbc

Analyze the terminal output to locate any version of Mariadb java client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.14), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.mariadb.jdbc command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Mariadb java client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary MariaDB Connector/J does not enforce `allowLocalInfile=false` when processing server-initiated LOCAL INFILE requests (protocol packet type `0xfb`). However, exploitation is constrained: the server can only request the exact filename the client already included in its `LOAD DATA LOCAL INFILE` query, it cannot redirect to arbitrary paths. ## Details When a client executes `LOAD DATA LOCAL INFILE '/path/to/file'`, the connector sends the filename to the server as part of the COM_QUERY. A rogue or MitM server responds with a `0xfb` packet echoing that same filename. The connector, without checking `allowLocalInfile`, transmits the file content. The bypass is therefore limited to the file the application itself intended to load. The attacker cannot escalate to other files (e.g. `/etc/passwd`) unless the application's own query targets them. The real-world risk is: - An application that uses `LOAD DATA LOCAL INFILE` on potentially sensitive files (credentials, exports, configs) and connects over an untrusted network. - `allowLocalInfile=false` is supposed to disable this entire mechanism as a defense-in-depth measure, but the flag is ignored. ## Impact The security guarantee of `allowLocalInfile=false` is not upheld, but practical exploitation requires both a MitM/rogue server and an application that actively uses LOCAL INFILE on sensitive data. ## Credit Reported by tharavel

CVE-2026-61700 Affected Mariadb java client Versions

4 component(s)
Fixed Versions:
2.7.143.3.53.4.33.5.9
Product / Package Ecosystem Affected Versions Fixed Version
org.mariadb.jdbc:mariadb-java-client
Maven
< 2.7.14
2.7.14
org.mariadb.jdbc:mariadb-java-client
Maven
≥ 3.0.0
< 3.3.5
3.3.5
org.mariadb.jdbc:mariadb-java-client
Maven
≥ 3.4.0
< 3.4.3
3.4.3
org.mariadb.jdbc:mariadb-java-client
Maven
≥ 3.5.0
< 3.5.9
3.5.9

References

Frequently Asked Questions

What is CVE-2026-61700?
CVE-2026-61700 is a security vulnerability in Mariadb java client involving MariaDB Connector/J does not enforce allowLocalInfile=false on server-initiated LOCAL INFILE requests under CWE-284: Improper Access Control.
Which Mariadb java client versions are affected?
Affected versions include releases prior to 2.7.14, 3.3.5, 3.4.3, 3.5.9 across affected packages: org.mariadb.jdbc:mariadb-java-client.
What version fixes CVE-2026-61700?
Upgrading to 2.7.14, 3.3.5, 3.4.3, 3.5.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mariadb-java-client affected?
Yes, org.mariadb.jdbc:mariadb-java-client is affected in releases prior to 2.7.14, 3.3.5, 3.4.3, 3.5.9. Upgrade your dependency to 2.7.14, 3.3.5, 3.4.3, 3.5.9 or later.
What is the CVSS score of CVE-2026-61700?
CVE-2026-61700 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-61700?
CVE-2026-61700 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2026-61700?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.mariadb.jdbc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wxmm-q36w-r9xj",
  "modified" : "2026-09-17T16:29:54Z",
  "published" : "2026-09-17T16:29:53Z",
  "aliases" : [ "CVE-2026-61700" ],
  "summary" : "MariaDB Connector/J does not enforce allowLocalInfile=false  on server-initiated LOCAL INFILE requests",
  "details" : "## Summary\n\nMariaDB Connector/J does not enforce `allowLocalInfile=false` when \nprocessing server-initiated LOCAL INFILE requests (protocol packet \ntype `0xfb`). However, exploitation is constrained: the server can \nonly request the exact filename the client already included in its \n`LOAD DATA LOCAL INFILE` query, it cannot redirect to arbitrary paths.\n\n## Details\n\nWhen a client executes `LOAD DATA LOCAL INFILE '/path/to/file'`, the \nconnector sends the filename to the server as part of the COM_QUERY. \nA rogue or MitM server responds with a `0xfb` packet echoing that \nsame filename. The connector, without checking `allowLocalInfile`, \ntransmits the file content.\n\nThe bypass is therefore limited to the file the application itself \nintended to load. The attacker cannot escalate to other files \n(e.g. `/etc/passwd`) unless the application's own query targets them.\n\nThe real-world risk is:\n- An application that uses `LOAD DATA LOCAL INFILE` on potentially \n  sensitive files (credentials, exports, configs) and connects over \n  an untrusted network.\n- `allowLocalInfile=false` is supposed to disable this entire \n  mechanism as a defense-in-depth measure, but the flag is ignored.\n\n## Impact\n\nThe security guarantee of `allowLocalInfile=false` is not upheld, \nbut practical exploitation requires both a MitM/rogue server and an \napplication that actively uses LOCAL INFILE on sensitive data.\n\n## Credit\n\nReported by tharavel",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mariadb.jdbc:mariadb-java-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mariadb.jdbc:mariadb-java-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.3.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mariadb.jdbc:mariadb-java-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4.0"
      }, {
        "fixed" : "3.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.mariadb.jdbc:mariadb-java-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.5.0"
      }, {
        "fixed" : "3.5.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-wxmm-q36w-r9xj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mariadb-corporation/mariadb-connector-j/commit/0205d8be947918566cd9ce5a9db149541bbc8dee"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mariadb-corporation/mariadb-connector-j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-17T16:29:53Z",
    "nvd_published_at" : null
  }
}