Vulnerability GHSA-wxmm-q36w-r9xj

Low Risk
LOW RISK
CVSS Score: 3.7
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
1 month ago
September 17, 2026 at 04:29 PM UTC
MariaDB Connector/J does not enforce allowLocalInfile=false on server-initiated LOCAL INFILE requests
1.1.7 - 2.7.13 and 3.0.1-beta - 3.3.4 and 3.4.0 - 3.4.2 and 3.5.0 - 3.5.8
1.1.7 - 2.7.13 and 3.0.1-beta - 3.3.4 and 3.4.0 - 3.4.2 and 3.5.0 - 3.5.8

Summary

MariaDB Connector/J does not enforce allowLocalInfile=false on server-initiated LOCAL INFILE requests

Details

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

Related Vulnerabilities

Other vulnerabilities affecting the same packages

View all vulnerabilities for these packages

Timeline

Published
1 month ago
September 17, 2026 at 04:29 PM UTC
Fixed (2.7.14)
Unknown
Unknown
Fixed (3.3.5)
Unknown
Unknown
Fixed (3.4.3)
Unknown
Unknown
Fixed (3.5.9)
Unknown
Unknown
Last Modified
1 month ago
September 17, 2026 at 04:45 PM UTC