Technical impact
The connector’s validation routine for local file paths incorrectly accepts file names that appear inside quoted identifiers, string literals, or comments in a LOAD DATA LOCAL INFILE statement. An attacker who can influence the server’s responses—such as a compromised database server or a man‑in‑the‑middle attacker—can embed an arbitrary client‑host file name in metadata or updatable‑result queries. When allowLocalInfile is enabled, the connector then attempts to read that file from the client machine, thereby exposing any readable client data to the attacker.
Affected Systems
MariaDB Connector/J versions 3.0.0 up to but excluding 3.3.7, 3.4.5, and 3.5.11 are affected. This library is used by Java applications that connect to MariaDB or MySQL databases.
Risk and Exploitability
The CVSS score of 5.9 indicates moderate severity. The EPSS score of < 1% indicates a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Attacks require control or compromise of the database server or interception of traffic to supply malicious identifiers; once a connection with allowLocalInfile enabled is established, the attacker can read any file readable by the client process, resulting in data leakage.
Github GHSA