MariaDB Connector/J regex check lets a server read client files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 9 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-73 and the CVSS impact.
Summary
MariaDB Connector/J from 3.0.0 before 3.3.7, from 3.4.0 before 3.4.5, and from 3.5.0 before 3.5.11 is affected. The LOAD DATA LOCAL INFILE check in validateLocalFileName() uses a regular expression that matches text inside quoted identifiers, string literals, or comments instead of a real statement (CWE-20). A malicious or compromised server, or a machine-in-the-middle attacker, can return crafted identifiers and then request a client file, which the connector streams when allowLocalInfile is enabled.
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MariaDB | mariadb-connector-j | 3.0.0 to before 3.3.7; 3.4.0 to before 3.4.5; 3.5.0 to before 3.5.11 | 3.3.7, 3.4.5, 3.5.11 | Patch available | CNA |
| — | org.mariadb.jdbc:mariadb-java-client (Maven) | 3.0.0 to before 3.3.7 | 3.3.7 | Patch available | GHSA-fhx5-2xqw-2cgm |
| — | org.mariadb.jdbc:mariadb-java-client (Maven) | 3.4.0 to before 3.4.5 | 3.4.5 | Patch available | GHSA-fhx5-2xqw-2cgm |
| — | org.mariadb.jdbc:mariadb-java-client (Maven) | 3.5.0 to before 3.5.11 | 3.5.11 | Patch available | GHSA-fhx5-2xqw-2cgm |
- mariadb-connector-j VendorMariaDB Affected 3.0.0 to before 3.3.7; 3.4.0 to before 3.4.5; 3.5.0 to before 3.5.11 Fixed in 3.3.7, 3.4.5, 3.5.11 Patch available CNA
- org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.0.0 to before 3.3.7 Fixed in 3.3.7 Patch available GHSA-fhx5-2xqw-2cgm
- org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.4.0 to before 3.4.5 Fixed in 3.4.5 Patch available GHSA-fhx5-2xqw-2cgm
- org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.5.0 to before 3.5.11 Fixed in 3.5.11 Patch available GHSA-fhx5-2xqw-2cgm
Remediation
Upgrade to MariaDB Connector/J 3.3.7, 3.4.5, or 3.5.11, or to the matching org.mariadb.jdbc:mariadb-java-client release on the same line. The sources list no fixed version for Red Hat Build of Keycloak, Red Hat Enterprise Linux 8, 9, and 10, Red Hat OpenShift AI (RHOAI), Red Hat Satellite 6, Red Hat build of Debezium 3, and Red Hat build of Quarkus, and no fix is planned for Red Hat OpenStack Platform 13 (Queens).
Written with Claude Haiku 5.5 from the sources below · 2026-11-03
- Fix · CNA mariadb-connector-j (mariadb-corporation) Fixed in 3.3.7, 3.4.5, 3.5.11
- Fix · GHSA-fhx5-2xqw-2cgm org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.3.7 Advisory →
- Fix · GHSA-fhx5-2xqw-2cgm org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.4.5 Advisory →
- Fix · GHSA-fhx5-2xqw-2cgm org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.5.11 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat build of Debezium 3 | Affected | No fix yet: Fix deferred |
| Red Hat build of Quarkus | Affected | No fix yet |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-29 Threatist record created from CVE-2026-119210
- 2026-10-30 Alias added: GHSA-fhx5-2xqw-2cgm
- 2026-10-30 Fix available: Maven/org.mariadb.jdbc:[email protected], Maven/org.mariadb.jdbc:[email protected], Maven/org.mariadb.jdbc:[email protected] · GHSA-fhx5-2xqw-2cgm
- 2026-10-30 CVSS score added · GHSA-fhx5-2xqw-2cgm
- 2026-10-30 Weakness changed · GHSA-fhx5-2xqw-2cgm
- 2026-10-30 9 new references · GHSA-fhx5-2xqw-2cgm
- 2026-10-31 Priority changed: MEDIUM → LOW
- 2026-11-02 Affected versions changed · Red Hat
- 2026-11-02 CVSS score added · Red Hat
- 2026-11-03 CISA SSVC decision points changed
- 2026-11-04 Affected versions changed · Red Hat
References
Other 8
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-fhx5-2xqw-2cgm
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/4d2f8002399949ed7f138e9c0b75b69229538120
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/5812e0ca7574c3934915179b76f2e819a556d099
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/a4891f877f1c885a573194771c1ed0aacec0ce1d
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11
- https://github.com/mariadb-corporation/mariadb-connector-j
More MariaDB vulnerabilities
- TI-2023-11776 MariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via… CVSS 3.1CRITICAL 9.8
- TI-2016-05707 Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB… CVSS 3.0CRITICAL 9.8
- TI-2022-00687 Infinite loop in BN_mod_sqrt() reachable when parsing certificates CVSS 3.1HIGH 7.5
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
- TI-2014-00188 The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0… CVSS 2.0MEDIUM 6.8
- TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-119210 · CVE Program
- CVE-2026-119210 · NVD
- FIRST EPSS
- GHSA-fhx5-2xqw-2cgm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-119210 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences