Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl server or gain MitM position
-
DeliveryReturn crafted identifier in metadata response
-
ExploitConnector reuses identifier in SHOW CREATE TABLE/UPDATE query
-
ExecutionServer issues LOCAL INFILE request, regex check bypassed
-
ImpactClient-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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
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
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-113382
GHSA-fhx5-2xqw-2cgm
NVD
CVE.org
EPSS
Exploit-DB