Skip to main content

MariaDB Connector/J CVE-2026-119210

| EUVDEUVD-2026-113382 MEDIUM
Improper Input Validation (CWE-20)
2026-10-29 GitHub_M GHSA-fhx5-2xqw-2cgm
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control server or gain MitM position
  2. Delivery
    Return crafted identifier in metadata response
  3. Exploit
    Connector reuses identifier in SHOW CREATE TABLE/UPDATE query
  4. Execution
    Server issues LOCAL INFILE request, regex check bypassed
  5. Impact
    Client-host file streamed to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires that the attacker control the server side of the JDBC connection - a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the client-server link - AND that the connection property allowLocalInfile be enabled (the advisory states this is the default). The client application must also exercise a path that reuses server-returned identifiers, specifically DatabaseMetaData.getImportedKeys(), DatabaseMetaData.getExportedKeys(), ResultSet.updateRow() / updatable result sets, or application code that interpolates server-supplied identifiers into later queries. Affected versions are 3.0.0 up to (but not including) 3.3.7, the 3.4.x branch before 3.4.5, and the 3.5.x branch before 3.5.11. Limiting factors that reduce realistic risk: the attacker must already hold server-side control or a MitM position (no path from an ordinary unprivileged network attacker), and setting allowLocalInfile=false fully blocks exploitation where LOAD DATA LOCAL INFILE is not needed; the advisory indicates upgrading to the fixed versions is the complete fix.

Impact

The CVSS base score of 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) captures this well: network-reachable (AV:N) and requiring no authentication against the connector (PR:N) or user interaction (UI:N), but with high attack complexity (AC:H) because exploitation requires the attacker to control the server side of the JDBC connection or occupy a machine-in-the-middle position. Impact is confidentiality-only (C:H, I:N, A:N) - arbitrary read of files the client JVM can access. KEV status is NO (not in CISA KEV), no EPSS score was supplied, and no PoC or exploit reference appears in the input, so exploitation status is: no public exploit identified at time of analysis. The vuln.today decision label is 'this_month', consistent with a real but non-emergency confidentiality flaw that depends on an attacker-controlled or MitM server plus the default-enabled allowLocalInfile setting. This is a genuine priority for anyone whose Java applications connect to untrusted or network-exposed MariaDB/MySQL endpoints, but the AC:H gating (needing server-side control or MitM) means it is not a mass-exploitable, internet-facing issue; it is lower urgency than a high-EPSS or KEV-listed flaw. Missing signal: EPSS probability was not provided, so widespread-exploitation likelihood cannot be quantified from the input.

Exploit ScenarioDerived

A malicious, compromised, or man-in-the-middle MariaDB/MySQL server returns a crafted database or table identifier such as LOAD DATA LOCAL INFILE '/etc/passwd', which the connector reuses verbatim in a follow-up query (for example a SHOW CREATE TABLE issued by DatabaseMetaData.getImportedKeys()). The server then answers with a LOCAL INFILE request for that file; the flawed validateLocalFileName() regex matches the text inside the quoted identifier, the check passes, and the connector streams the client-host file's contents back to the attacker. No public exploit code was identified in the provided data, and exploitation requires allowLocalInfile to be enabled (the default).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 29, 2026

Arbitrary client-host file disclosure in MariaDB Connector/J affects the 3.0.x branch before 3.3.7, the 3.4.x branch before 3.4.5, and the 3.5.x branch before 3.5.11: a malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle positioned on the client-server link, can cause the JDBC driver to stream any file readable by the client JVM back to the attacker. The driver's ClientMessage.validateLocalFileName() check used a regular expression that matched 'LOAD DATA LOCAL INFILE' text appearing anywhere in the outgoing SQL, including inside backtick-quoted identifiers, string literals and comments, so server-returned identifiers reused by DatabaseMetaData.getImportedKeys(), getExportedKeys() or ResultSet.updateRow() could satisfy the check and trigger a LOCAL INFILE request for an attacker-chosen path. Exploitation additionally requires the allowLocalInfile connection property to be enabled, which the advisory states is the default; there is no confirmed evidence of active exploitation and no public exploit was identified at time of analysis, though the CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, 5.9) reflects a high-confidentiality-impact issue gated on server-side control or a MitM position.

RemediationAI

Vendor-released patch: upgrade MariaDB Connector/J to 3.3.7 (3.3.x line), 3.4.5 (3.4.x line) or 3.5.11 (3.5.x line) depending on the branch in use; the vendor advisory at https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-fhx5-2xqw-2cgm treats upgrading as the complete fix, and the code changes are visible in commits 4d2f8002399949ed7f138e9c0b75b69229538120, 5812e0ca7574c3934915179b76f2e819a556d099 and a4891f877f1c885a573194771c1ed0aacec0ce1d. Where an immediate upgrade is not possible, set allowLocalInfile=false on every connection, which the advisory identifies as the workaround that blocks exploitation but disables LOAD DATA LOCAL INFILE functionality entirely, so any bulk-load workflows depending on that feature will break and must be migrated to an alternative ingestion path before the mitigation is rolled out. Environments that cannot rule out a hostile server or a MitM on the database link should treat the driver upgrade plus allowLocalInfile=false as the safe baseline, and applications that interpolate schema or table names returned by the server into their own SQL should stop doing so, since the same constructed identifiers reach the driver's query paths even after patching the connector's own internal re-use.

Affected VersionsENISA

mariadb-connector-j 3.4.0, < 3.4.5
mariadb-connector-j 3.5.0, < 3.5.11
mariadb-connector-j 3.0.0, < 3.3.7

Affected Packages

maven org.mariadb.jdbc:mariadb-java-client fix: 3.3.7, 3.4.5, 3.5.11
euvd mariadb_connector_j fix: 3.3.7, 3.4.5, 3.5.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MariaDB Connector/J (Maven artifact org.mariadb.jdbc:mariadb-java-client) is the JDBC driver Java applications use to talk to MariaDB and MySQL. The MySQL/MariaDB wire protocol lets a server answer a client command with a LOCAL INFILE request packet (0xFB) asking the client to upload a local file; the connector honors this when allowLocalInfile is enabled, but before doing so it is expected to verify that the file name corresponds to a LOAD DATA LOCAL INFILE statement the client actually issued. That verification lived in ClientMessage.validateLocalFileName() and was implemented as a case-insensitive regular expression whose prefix accepted any character sequence, so it answered 'does this text appear anywhere in the SQL' rather than 'is this the statement being executed'. Because several driver code paths echo server-supplied schema and table names straight back into subsequent queries - getImportedKeys() and getExportedKeys() reuse names from SHOW DATABASES, SHOW TABLES and the REFERENCES clause of SHOW CREATE TABLE, and updatable result sets build UPDATE and refresh SELECT statements from column-definition packets - a server that returns an identifier such as LOAD DATA LOCAL INFILE '/etc/passwd' causes the driver to emit a statement containing that text, after which the server's LOCAL INFILE request for /etc/passwd passes the regex check and the file is exfiltrated. This is an improper-input-validation defect (CWE-20) that the advisory also classifies as external control of file name or path (CWE-73). The upstream fix replaces the regex search with a real tokenizer: string literals, quoted identifiers and comments are skipped, statements are split on ';', and only a LOAD DATA|XML [LOW_PRIORITY|CONCURRENT] LOCAL INFILE at the start of a statement counts, with its file literal or bound parameter compared exactly against the requested file name. Notably, the getImportedKeys() path swallows the resulting error, so an affected application may observe nothing while data leaves the host.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

Attacker must control the server or sit as MitM (AC:H) with no authentication to the connector (PR:N) and no user interaction (UI:N); impact is arbitrary client file read only, so C:H, I:N, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 21:03 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
common Java JDBC driver for MariaDB/MySQL, not universally deployed
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy