MariaDB Connector/J: LOAD DATA LOCAL INFILE file check could be satisfied by text inside quoted identifiers, letting a malicious server read client files
Summary
| CVE | CVE-2026-119210 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-29 21:17:20 UTC |
| Updated | 2026-10-29 21:17:20 UTC |
| Description | MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. From 3.0.0 until 3.3.7, 3.4.5, and 3.5.11, the ClientMessage.validateLocalFileName() check used a regular expression that could match LOAD DATA LOCAL INFILE text inside quoted identifiers, string literals, or comments instead of requiring a real statement. A malicious or compromised server, or a machine-in-the-middle attacker, could return crafted database or table identifiers that the connector reused in metadata or updatable-result queries, then answer with a LOCAL INFILE request for a client file. With allowLocalInfile enabled, this caused the connector to stream any readable client-host file named by the crafted text, including through DatabaseMetaData.getImportedKeys(), DatabaseMetaData.getExportedKeys(), or ResultSet.updateRow() paths. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11. |
Risk And Classification
Primary CVSS: v3.1 5.9 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Problem Types: CWE-20 | CWE-73 | CWE-20 CWE-20: Improper Input Validation | CWE-73 CWE-73: External Control of File Name or Path
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Mariadb-corporation | Mariadb-connector-j | affected >= 3.0.0, < 3.3.7 | Not specified |
| CNA | Mariadb-corporation | Mariadb-connector-j | affected >= 3.4.0, < 3.4.5 | Not specified |
| CNA | Mariadb-corporation | Mariadb-connector-j | affected >= 3.5.0, < 3.5.11 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/mariadb-corporation/mariadb-connector-j/commit/5812e0ca7574c3... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/security/advisories/G... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/commit/4d2f8002399949... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-j/commit/a4891f877f1c88... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.