Skip to main content

MariaDB Connector/J CVE-2026-119276

| EUVDEUVD-2026-113383 MEDIUM
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-10-29 GitHub_M GHSA-h599-m3w5-9m7x
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
    Gain rogue server or MitM position on client connection
  2. Delivery
    Send OK packet declaring oversized info/session-state length
  3. Exploit
    Client allocates large byte arrays before bounds check
  4. Execution
    Repeat across packets to exhaust heap
  5. Impact
    Trigger OutOfMemoryError / DoS in client application

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
Exploitation Conditions

Exploitation requires that CLIENT_SESSION_TRACK be negotiated (this is the default) AND that the attacker control the server side of the connection - a malicious or compromised MariaDB/MySQL server - or hold a machine-in-the-middle position on the client-to-server link. The attacker then sends an OK packet whose info field or session-state variable name/value declares a length far larger than the packet actually contains (e.g. 8 MiB declared in an 18-byte packet), causing the client to allocate that memory before the copy fails with ArrayIndexOutOfBoundsException. Limiting factors: no path exists for an unprivileged remote attacker who cannot control or intercept the server connection; a TLS-protected connection to a trusted server neutralizes the MitM vector; impact is confined to denial of service (GC pressure / OutOfMemoryError) of the client JVM with no confidentiality, integrity, or code-execution consequences. The per-packet allocation is bounded by length-encoded integer range but not by remaining packet size, which is the defect.

Impact

This is a moderate-severity, availability-only issue that should be treated as routine patching rather than an emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, base 5.9) and the GHSA advisory agree on the mechanism: a client sizes heap allocations from server-declared length fields in OK packets before validating them against the packet, so a malicious/compromised database server or a machine-in-the-middle can force repeated large allocations and drive GC pressure up to OutOfMemoryError. AC:H correctly reflects that exploitation requires the attacker to already control the server side of the connection or hold a MitM position - not a condition an arbitrary remote attacker meets. Signals are consistent and point to limited real-world urgency: there is no CISA KEV listing (so no 'confirmed actively exploited' claim), no EPSS score was supplied, and no public exploit identified at time of analysis - the references are the vendor advisory, three patch commits and three release tags only. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with an availability-only impact and a non-trivial precondition. Impact is bounded: no confidentiality or integrity effect, no authentication bypass, no code execution - the worst outcome is denial of service of the client JVM. Bottom line: a genuine but not top-priority bug; patch within a normal cycle, prioritizing clients that connect to untrusted/third-party servers or run over unencrypted links.

Exploit ScenarioDerived

A Java application uses a vulnerable MariaDB Connector/J (with CLIENT_SESSION_TRACK negotiated, the default) to connect to a database server that the attacker controls or can MitM on an unencrypted link. The server returns a small OK packet whose info field or session-state name/value declares a length of, e.g., 8 MiB inside an 18-byte packet; the client allocates that memory before the copy fails, and repeating this on every OK packet drives GC pressure to an OutOfMemoryError. No public exploit identified at time of analysis - only the vendor advisory and patch commits are referenced.

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

Heap-exhaustion denial of service in MariaDB Connector/J (the Java client published as org.mariadb.jdbc:mariadb-java-client) affects versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.10: a malicious or compromised MariaDB/MySQL server, or an attacker in a machine-in-the-middle position, can send a tiny OK packet that declares multi-megabyte field lengths and force repeated attacker-sized heap allocations in the client JVM. The result is garbage-collection pressure up to an OutOfMemoryError, so the impact is availability only - no confidentiality, integrity, or code-execution effect. Exploitation requires control of the server side of the connection or interception of the client-to-server link; a TLS-protected connection to a trusted server removes the MitM path, and no public exploit code has been identified at time of analysis. This is a moderate-severity issue suited to routine monthly patching rather than emergency response.

RemediationAI

Upgrade to the fixed release on your maintenance branch: 3.3.7 for the 3.0.x-3.3.x line, 3.4.5 for the 3.4.x line, and 3.5.11 for the 3.5.x line, per the GitHub advisory GHSA-h599-m3w5-9m7x and the corresponding release tags (https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7, /3.4.5, /3.5.11); the upstream commits b9e1ee8d9b4d820d70719504cdfd5c97f1aede5f, beb445fcf9294113878fc05ac77f0efdf0596ac6 and ea8c7b6537e50053444188a9a3fd9cae99550f56 contain the length-validation fix but a released artifact is the supported path. Until the upgrade is deployed, the exposure is bounded by who can occupy the server side of the connection: forcing TLS with server certificate verification for all JDBC connections prevents an on-path attacker from injecting forged OK packets, at the cost of certificate lifecycle management and the possibility that it is not applicable where the server itself is untrusted or multi-tenant. Because the memory pressure only arises when CLIENT_SESSION_TRACK is negotiated, reviewing that connection property with the application owner is the other lever, but the advisory presents the length validation in the fixed releases as the complete remedy and does not endorse a configuration workaround. No vendor-released patch status beyond these versions is asserted here.

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 implements the MySQL/MariaDB client wire protocol in Java, decoding server responses through the ReadableByteBuf helper. When CLIENT_SESSION_TRACK is negotiated - which is the default - an OK packet carries an info field followed by session-state blocks, each tracked variable transmitted as a length-encoded name and value. The bug class is CWE-130 (improper handling of length parameter inconsistency), with the advisory also tagging CWE-789 (memory allocation with excessive size): OkPacket.parse() and OkPacket.parseWithInfo() read a server-declared length and immediately executed new byte[len] for the info field and for each variable name and value, copying the packet bytes only afterwards. Because the length-encoded integer validation only guarantees a valid positive integer, a server could declare 8 MiB inside an 18-byte packet; the allocation succeeded and the subsequent copy failed with ArrayIndexOutOfBoundsException, but only after the memory had been claimed - repeatable on every OK packet. The upstream commits add ReadableByteBuf.checkLength(), which rejects negative lengths or lengths exceeding the remaining readable bytes before allocation, add a bounded readBytes(int) that performs the check before allocating, tighten the nullable length-encoded integer decoding to reject values outside the non-negative int range instead of silently narrowing them, and stop session-state parsing at the first inconsistent entry. The same commits route ColumnDecoder and the Bit, Blob, Geometry and String column decoders through the checked readBytes path, so the defect fixed is the missing packet-bound validation on server-declared lengths, not a race or a parsing-state confusion.

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 the server endpoint or achieve a MitM position (AC:H), needs no client-side auth (PR:N), and impact is denial of service 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:L/AT:P/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, 3.4.5, and 3.5.11, when CLIENT_SESSION_TRACK was negotiated, the OkPacket.parse() and OkPacket.parseWithInfo() paths allocated byte arrays using server-declared lengths for the OK packet info field and session-state variable names and values before confirming that the bytes remained in the packet. A malicious or compromised server, or a machine-in-the-middle attacker, could send a small OK packet declaring a much larger length and repeatedly force attacker-controlled heap allocations before the subsequent copy failed. This could create garbage-collection pressure or an OutOfMemoryError in the client application. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.11.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
common Java JDBC driver, but one of several and not universally deployed
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub

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