CVE-2026-61700
MariaDB Connector/J does not enforce allowLocalInfile=false on server-initiated LOCAL INFILE requests
Description
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
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mariadb.jdbc » mariadb-java-client | < 2.7.14>= 3.0.0, < 3.3.5>= 3.4.0, < 3.4.3>= 3.5.0, < 3.5.9 | 2.7.14, 3.3.5, 3.4.3, 3.5.9 |
Blast radius
71% of the dependent artifacts (1,894) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 28,680 |
| 2 hops | 28,114 |
| 3 hops | 14,787 |
| 4 hops | 9,783 |
| 5 hops | 6,745 |
| 6 hops | 1,365 |
Most used dependents
- org.openmrs.api » openmrs-api564 usages
- org.openmrs.web » openmrs-web521 usages
- org.nuxeo.ecm.core » nuxeo-core-test227 usages
- org.nuxeo.ecm.platform » nuxeo-platform-test167 usages
- org.nuxeo.ecm.core » nuxeo-core-storage-sql-test123 usages
- org.onap.ccsdk.sli.core » sli-provider110 usages
- org.onap.ccsdk.sli.core » sli-common104 usages
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan89 usages
- it.uniroma2.art.semanticturkey » st-core-framework78 usages
- io.debezium » debezium-connector-mysql72 usages
- org.opendaylight.netconf » odl-restconf70 usages
- org.nuxeo.ecm.platform » nuxeo-platform-webapp-core70 usages
- org.onap.policy.drools-pdp » policy-management65 usages
- org.nuxeo.ecm.distribution » nuxeo-nxr-server64 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-wxmm-q36w-r9xj
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/commit/0205d8be947918566cd9ce5a9db149541bbc8dee
- Packagehttps://github.com/mariadb-corporation/mariadb-connector-j
- Webhttps://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.9
