Description
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 ClientMessage.validateLocalFileName() check used a regular expression that could match LOAD DATA LOCAL INFILE text inside quoted identifiers, string literals, or comments instead of requiring a real statement. A malicious or compromised server, or a machine-in-the-middle attacker, could return crafted database or table identifiers that the connector reused in metadata or updatable-result queries, then answer with a LOCAL INFILE request for a client file. With allowLocalInfile enabled, this caused the connector to stream any readable client-host file named by the crafted text, including through DatabaseMetaData.getImportedKeys(), DatabaseMetaData.getExportedKeys(), or ResultSet.updateRow() paths. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.
Published: 2026-10-29
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Remote Data Exposure
Action: Patch Now
AI Analysis

Impact

The vulnerability arises from the MariaDB Connector/J ClientMessage.validateLocalFileName() routine, which incorrectly accepts file paths embedded inside quoted identifiers, string literals, or comments in a LOAD DATA LOCAL INFILE statement. An attacker controlling the database server or intercepting traffic can return crafted metadata that includes an arbitrary file name. With allowLocalInfile enabled, the connector will then attempt to read that file from the client host, exposing its contents to the attacker. This flaw allows confidential data on the client machine to be read and exfiltrated because the connector trusts server-supplied identifiers without proper sanitization.

Affected Systems

This issue affects MariaDB Connector/J versions 3.0.0 through 3.3.6, 3.4.4, and 3.5.10, corresponding to the released builds 3.0.0–3.3.6, 3.4.4, and 3.5.10. The product impacts Java applications that use the Connector/J library to connect to MariaDB or MySQL databases. The library is distributed by MariaDB Corporation.

Risk and Exploitability

The CVSS score is 5.9, indicating moderate severity. No EPSS score is available, so the likelihood of exploitation is unknown, and the vulnerability is not listed in CISA’s KEV catalog. The attack likely requires an attacker to control or compromise the database server or perform a man‑in‑the‑middle attack to return malicious identifiers. Once the connection is established and allowLocalInfile is enabled, the attacker can read any file readable by the client process, leading to data leakage.

Generated by OpenCVE AI on October 29, 2026 at 22:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MariaDB Connector/J to version 3.3.7, 3.4.5, or 3.5.11, where the validateLocalFileName check is fixed.
  • Disable the allowLocalInfile property in the JDBC connection string or application configuration to block the execution of LOAD DATA LOCAL INFILE commands.
  • Audit and restrict the use of DatabaseMetaData methods outside trusted contexts, ensuring that metadata information is not derived from untrusted server responses.

Generated by OpenCVE AI on October 29, 2026 at 22:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Mariadb
Mariadb mariadb-connector-j
Mariadb-corporation
Mariadb-corporation mariadb-connector-j
Vendors & Products Mariadb
Mariadb mariadb-connector-j
Mariadb-corporation
Mariadb-corporation mariadb-connector-j

Thu, 29 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
Description 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 ClientMessage.validateLocalFileName() check used a regular expression that could match LOAD DATA LOCAL INFILE text inside quoted identifiers, string literals, or comments instead of requiring a real statement. A malicious or compromised server, or a machine-in-the-middle attacker, could return crafted database or table identifiers that the connector reused in metadata or updatable-result queries, then answer with a LOCAL INFILE request for a client file. With allowLocalInfile enabled, this caused the connector to stream any readable client-host file named by the crafted text, including through DatabaseMetaData.getImportedKeys(), DatabaseMetaData.getExportedKeys(), or ResultSet.updateRow() paths. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.
Title MariaDB Connector/J: LOAD DATA LOCAL INFILE file check could be satisfied by text inside quoted identifiers, letting a malicious server read client files
Weaknesses CWE-20
CWE-73
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Mariadb Mariadb-connector-j
Mariadb-corporation Mariadb-connector-j
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T20:45:38.135Z

Reserved: 2026-10-29T16:04:48.729Z

Link: CVE-2026-119210

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-29T21:17:20.403

Modified: 2026-10-29T21:17:20.403

Link: CVE-2026-119210

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T22:45:03Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-73

    External Control of File Name or Path