Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl or MitM the database server
-
DeliveryClient initiates caching_sha2_password authentication
-
ExploitReply with malformed auth-more-data packet
-
ExecutionTrigger oversized allocation or unchecked ArrayIndexOutOfBoundsException
-
ImpactCrash connection establishment (denial of service)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
|
| Exploitation Conditions | Exploitation requires that the Java client use caching_sha2_password authentication (the default auth plugin on MySQL 8.0+ and supported by MariaDB) and that the attacker occupy the server side of the connection - a malicious server, a compromised legitimate server, or a machine-in-the-middle on the TCP connection. The malformed authentication-more-data packet is sent during the handshake, before the client transmits its password, so no valid credentials and no prior client-side privileges are needed, but also no credential is disclosed. Only versions 3.0.0 through 3.3.6 and 3.4.0 through 3.4.4 are affected. Key limiting factors: the attacker cannot exploit this without controlling or intercepting the server, so connections to trusted servers over verified/encrypted channels (sslMode with server certificate verification) sharply reduce realistic exposure; the outcome is confined to crashing or exhausting memory during connection establishment, with no code execution and no data access. |
| Impact | This is a genuine but moderate-priority availability issue, not a high-CVSS-but-illusory risk nor a drop-everything emergency. The signals are internally consistent: NVD scores it 5.9 (MEDIUM) with CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - availability-only impact (C:N/I:N) matching the vendor advisory's explicit 'Availability only ... no credential is exposed,' so the 'Information Disclosure' tag in the input is simply wrong. PR:N formally means no client-side credentials are needed, but the real gating factor is the threat model: the attacker must control the server side of the connection (a malicious, compromised, or MitM server), which is exactly what AC:H reflects and what keeps this from being mass-exploitable against arbitrary internet targets. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with medium severity and a DoS-only outcome. No EPSS score was supplied and the CVE is not in CISA KEV, so there is no evidence of active exploitation; no standalone public exploit/PoC is listed, though the fix commit ships a regression test (RogueServerAuthMoreDataTest) that reproduces the malformed packet. Net: a real, vendor-confirmed defect worth patching on a normal monthly cycle, with limited blast radius because it requires a rogue/MitM server and only crashes or balloons memory during connection setup. |
| Exploit ScenarioDerived | An attacker who runs a malicious MariaDB/MySQL server, compromises one a Java application connects to, or achieves a machine-in-the-middle position on an unverified connection, waits for a client using caching_sha2_password authentication and replies to the scramble with a malformed authentication-more-data packet that either declares an enormous length-encoded size or carries an empty body. The vulnerable driver (3.0.0-3.3.6, 3.4.0-3.4.4) sizes a buffer from the server-declared length and reads authResult[0] without a bounds check, driving a large allocation or throwing an unchecked ArrayIndexOutOfBoundsException that escapes DriverManager.getConnection() and crashes connection establishment. No standalone public exploit is published, but the fix commit includes a regression test that reproduces the crafted packet. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Connection-establishment denial of service in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) 3.0.0 through 3.3.6 and 3.4.0 through 3.4.4 stems from the caching_sha2_password plugin trusting a server-declared length in the authentication-more-data packet and then indexing the resulting buffer without confirming it held a byte. A malicious or compromised MariaDB/MySQL server, or a machine-in-the-middle on the TCP connection, can therefore drive a very large heap allocation or trigger an unchecked ArrayIndexOutOfBoundsException that escapes DriverManager.getConnection(), crashing the application during connection setup before any password is transmitted - so availability only, with no credential exposure, data access, or code execution. The vector is AV:N/AC:H/PR:N/UI:N with C:N/I:N/A:H (5.9), the high attack complexity reflecting the prerequisite that the attacker occupy the server side of the connection; connections to trusted servers over certificate-verified TLS sharply reduce realistic exposure. No public exploit code and no CISA KEV entry were identified at time of analysis, and vendor patches are released as 3.3.7 and 3.4.5, with the maintainers' advisory rating this a moderate-priority availability fix rather than an emergency.
RemediationAI
Vendor-released patch: upgrade to MariaDB Connector/J 3.3.7 (for the 3.0.x-3.3.x line) or 3.4.5 (for the 3.4.x line), per the advisory at https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-r9vh-xh4r-j6gr and the release tags above; the underlying changes are in commits https://github.com/mariadb-corporation/mariadb-connector-j/commit/1e32b7010485f090cc402528c334301432495fbe and https://github.com/mariadb-corporation/mariadb-connector-j/commit/86a90b0dc9746aa3bd4aa1df264be22a2d1b7d98. If an immediate upgrade is not possible, the driver only reaches the faulty code when the connection negotiates caching_sha2_password, so configuring the account to authenticate with a different plugin such as mysql_native_password removes the exposure - at the cost of a weaker authentication scheme that is deprecated and disabled by default on MySQL 8.0+ and therefore not a durable solution. In addition, enable TLS with server certificate verification (for example sslMode=verify-ca or verify-full rather than sslMode=disable or a non-verifying mode), which defeats the machine-in-the-middle variant of this attack while leaving the malicious-server variant unaffected; this requires correctly provisioned trust material and correct server hostnames, and any existing deployment that relies on unverified TLS will break until certificates are fixed. Reducing trust in untrusted or shared database endpoints and keeping JDBC connection strings pointed only at servers under your control also limits the attack surface but does not fix the parsing defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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 is the pure-Java Type-4 JDBC driver used by Java applications to reach MariaDB and MySQL, and the affected code lives in org.mariadb.jdbc.plugin.authentication.standard.CachingSha2PasswordPlugin, the client implementation of MySQL's caching_sha2_password authentication plugin (the default on MySQL 8.0+ and supported by MariaDB). After the client sends its scrambled password, the server replies with an authentication-more-data packet that in this protocol position carries a single result byte - 0x03 for fast authentication success, 0x04 for full authentication required (MySQL's later protocol revision wraps these as 0x01 0x03 and 0x01 0x04). The vulnerable driver instead parsed that payload as a length-encoded byte array, executed new byte[buf.readIntLengthEncodedNotNull()] using the length the server declared, copied the packet into it, and then evaluated authResult[0] in a switch without ever verifying that at least one byte was present. This is the CWE-129 (improper validation of array index) defect, compounded by CWE-789 (memory allocation with excessive size), since the allocation size is entirely attacker-chosen and unbounded: a 0x7FFFFFFF length declaration yields an attempted ~2 GB allocation while an empty payload yields the out-of-bounds index. Because the exception is unchecked and thrown inside the authentication flow, it propagates out of DriverManager.getConnection() as an error the calling application is not prepared for. The upstream fix removes the length-encoded read entirely, peeks for the optional 0x01 prefix, requires exactly one readable byte, and switches on that byte; it also guards the subsequent skip with a check that the first byte is 0x01. A dedicated regression test (RogueServerAuthMoreDataTest) stands up a loopback socket speaking a crafted handshake, declares 0x7FFFFFFF bytes with no data behind them, and asserts that a SQLException rather than an Error surfaces from the driver. Note that the flaw is reachable only on the caching_sha2_password code path; deployments authenticating with mysql_native_password or other plugins do not enter this code.
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:N/I:N/A:H
Attacker must control or MitM the server (AC:H) but needs no client credentials (PR:N); impact is a connection-setup crash or large allocation, so availability-only A:H, C:N/I: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 and 3.4.5, during caching_sha2_password authentication, the authentication-more-data response was treated as a length-encoded byte array, memory was allocated from the server-declared length, and authResult[0] was accessed without ensuring a byte existed. A malicious or compromised server, or a machine-in-the-middle attacker, could declare a very large length or send an empty response before any password was transmitted. The malformed packet could cause excessive allocation or an unchecked ArrayIndexOutOfBoundsException escaping from DriverManager.getConnection(). This issue is fixed in versions 3.3.7 and 3.4.5.
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
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-113385
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB