CVE-2026-61700: MariaDB Connector/J does not enforce allowLocalInfile=false on server-initiated LOCAL INFILE requests
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.
Published Sep 17, 2026
Affected packages
org.mariadb.jdbc:mariadb-java-client
- Ecosystem
- Maven
- Affected
- < 2.7.14
- Fixed in
- 2.7.14
- Check
mvn dependency:tree -Dincludes=org.mariadb.jdbc:mariadb-java-client
org.mariadb.jdbc:mariadb-java-client
- Ecosystem
- Maven
- Affected
- >= 3.0.0, < 3.3.5
- Fixed in
- 3.3.5
- Check
mvn dependency:tree -Dincludes=org.mariadb.jdbc:mariadb-java-client
org.mariadb.jdbc:mariadb-java-client
- Ecosystem
- Maven
- Affected
- >= 3.4.0, < 3.4.3
- Fixed in
- 3.4.3
- Check
mvn dependency:tree -Dincludes=org.mariadb.jdbc:mariadb-java-client
org.mariadb.jdbc:mariadb-java-client
- Ecosystem
- Maven
- Affected
- >= 3.5.0, < 3.5.9
- Fixed in
- 3.5.9
- Check
mvn dependency:tree -Dincludes=org.mariadb.jdbc:mariadb-java-client
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 INFILEon potentially sensitive files (credentials, exports, configs) and connects over an untrusted network. allowLocalInfile=falseis 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
Credited to tharavel.
References
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-wxmm-q36w-r9xj
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/0205d8be947918566cd9ce5a9db149541bbc8dee
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.9
- https://github.com/advisories/GHSA-wxmm-q36w-r9xj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-119210
MariaDB Connector/J: LOAD DATA LOCAL INFILE file check could be satisfied by text inside quoted identifiers, letting a malicious server read client files
medium5.9Oct 30, 2026CVE-2026-119276
MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets
medium5.9Oct 30, 2026CVE-2026-119279
MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths
medium5.9Oct 30, 2026CVE-2026-119280
MariaDB Connector/J: XA recover() trusted server-supplied gtrid and bqual lengths
low3.7Oct 30, 2026CVE-2026-119281
MariaDB Connector/J: Server could switch character_set_results away from UTF-8 without the client noticing
medium5.9Oct 30, 2026CVE-2026-55856
MariaDB has cleartext password disclosure to a MITM on the initial-handshake
medium5.9Aug 28, 2026
