Skip to main content

MariaDB Connector/J EUVDEUVD-2026-113385

| CVE-2026-119278 MEDIUM
Improper Validation of Array Index (CWE-129)
2026-10-29 GitHub_M
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 or MitM the database server
  2. Delivery
    Client initiates caching_sha2_password authentication
  3. Exploit
    Reply with malformed auth-more-data packet
  4. Execution
    Trigger oversized allocation or unchecked ArrayIndexOutOfBoundsException
  5. Impact
    Crash 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.

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

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

Alert me

AnalysisAIv1 – 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

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

Affected Packages

euvd mariadb_connector_j fix: 3.3.7, 3.4.5

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

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

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
None
Integrity
None
Availability
High

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 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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
widely used Java JDBC driver, but one of several connector choices
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

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.4%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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