# CVE-2026-119210: MariaDB Connector/J LOAD DATA LOCAL INFILE bypass in metadata queries

Source: https://junglewise.ai/threats/cve-2026-119210-mariadb-connector-j-is-used-to-connect-applications-developed-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-29. Updated: 2026-10-29  
License: CC BY 4.0 with a link back

CVE-2026-119210 · Severity: medium · CVSS 5.9 · Published 2026-10-29

MariaDB Connector/J is a Java library that applications use to connect to MariaDB and MySQL databases. A malicious or compromised database server can return crafted identifiers that trick the connector into executing LOAD DATA LOCAL INFILE requests, allowing the attacker to read arbitrary files from the client machine—including sensitive data like configuration files or credentials—if local file loading is enabled.

Technologies: [MariaDB Connector/J](https://junglewise.ai/threats/technologies/mariadb-connector-j), [org.mariadb.jdbc:mariadb-java-client (Maven)](https://junglewise.ai/threats/technologies/org-mariadb-jdbc-mariadb-java-client). Vendors: [Mariadb](https://junglewise.ai/threats/vendors/mariadb), [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-119210 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-119210 being exploited in the wild.

**How severe is CVE-2026-119210?** Medium severity, with a CVSS score of 5.9, published 29 October 2026.

**Which products and versions are affected?** MariaDB Connector/J 3.0.0 to 3.3.6, 3.4.0 to 3.4.4, 3.5.0 to 3.5.10; org.mariadb.jdbc:mariadb-java-client (Maven) >= 3.0.0, < 3.3.7, ECOSYSTEM:introduced=3.0.0,fixed=3.3.7.

**Is there a fix for CVE-2026-119210?** Yes. org.mariadb.jdbc:mariadb-java-client (Maven): upgrade to 3.3.7 or later. Until then: Disable the allowLocalInfile option unless absolutely necessary, or restrict database server connections to trusted sources only. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-119210 attacked?** It is attacked over the network or from the adjacent network.

**Am I affected by CVE-2026-119210?** Check whether you run MariaDB Connector/J or org.mariadb.jdbc:mariadb-java-client (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.mariadb.jdbc:mariadb-java-client (Maven): upgrade to 3.3.7 or later

  ```sh
  # set org.mariadb.jdbc:mariadb-java-client to 3.3.7 in your pom.xml or build.gradle
  ```


Disable the allowLocalInfile option unless absolutely necessary, or restrict database server connections to trusted sources only.

## Technical details

The vulnerability exists in the ClientMessage.validateLocalFileName() method, which uses an insufficient regular expression that matches LOAD DATA LOCAL INFILE text appearing inside quoted identifiers, string literals, or comments rather than detecting only actual LOAD DATA LOCAL INFILE statements. A network or MITM attacker can craft database or table names that bypass this check; the connector then reuses these crafted values in metadata queries (DatabaseMetaData.getImportedKeys(), getExportedKeys()) or ResultSet.updateRow() operations, causing a LOAD DATA LOCAL INFILE request to be issued and streamed file contents to the server. This requires allowLocalInfile to be enabled.

## Affected products

- MariaDB Connector/J 3.0.0 to 3.3.6, 3.4.0 to 3.4.4, 3.5.0 to 3.5.10

## Identifiers

- CVE-2026-119210
- GHSA-fhx5-2xqw-2cgm

## Timeline

- 2026-10-29: disclosed

## References

- [https://github.com/mariadb-corporation/mariadb-connector-j/commit/4d2f8002399949ed7f138e9c0b75b69229538120](https://github.com/mariadb-corporation/mariadb-connector-j/commit/4d2f8002399949ed7f138e9c0b75b69229538120)
- [https://github.com/mariadb-corporation/mariadb-connector-j/commit/5812e0ca7574c3934915179b76f2e819a556d099](https://github.com/mariadb-corporation/mariadb-connector-j/commit/5812e0ca7574c3934915179b76f2e819a556d099)

## Related threats

- [MariaDB Connector/J character set validation bypass](https://junglewise.ai/threats/cve-2026-119281-mariadb-connector-j-is-used-to-connect-applications-developed-in)
- [MariaDB Connector/J: XA recover() trusted server-supplied gtrid and bqual lengths](https://junglewise.ai/threats/cve-2026-119280-mariadb-connector-j-is-used-to-connect-applications-developed-in)
- [MariaDB Connector/J integer overflow in length encoding](https://junglewise.ai/threats/cve-2026-119279-mariadb-connector-j-is-used-to-connect-applications-developed-in)
- [MariaDB Connector/J array index out of bounds in caching_sha2_password](https://junglewise.ai/threats/cve-2026-119278-mariadb-connector-j-is-used-to-connect-applications-developed-in)
- [MariaDB Connector/J buffer overflow in packet decoding](https://junglewise.ai/threats/cve-2026-119277-mariadb-connector-j-is-used-to-connect-applications-developed-in)
