Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain rogue server or MitM position on client connection
-
DeliverySend OK packet declaring oversized info/session-state length
-
ExploitClient allocates large byte arrays before bounds check
-
ExecutionRepeat across packets to exhaust heap
-
ImpactTrigger 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
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).
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, 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
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-113383
GHSA-h599-m3w5-9m7x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB