Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain MitM position or control rogue/compromised DB server
-
DeliveryClient initiates connection to server
-
ExploitServer sends length-encoded integer above Integer.MAX_VALUE
-
ExecutionDriver narrows value to negative/unrelated int as a length
-
ImpactNegativeArraySizeException or oversized allocation crashes client connection handling
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
|
| Exploitation Conditions | Exploitation requires the attacker to control the server side of the connection - operating a malicious MariaDB/MySQL server, having compromised a legitimate one, or holding a machine-in-the-middle position on the client-server link - and to send a length-encoded protocol integer whose value exceeds Integer.MAX_VALUE. There is no special client-side feature flag or non-default configuration needed; any affected version (3.0.0 through the fixed 3.3.7/3.4.5/3.5.10 boundaries) parsing server responses is vulnerable. Limiting factors: the attacker must already be positioned on or control the server/connection path, so clients that connect only to trusted servers over properly validated TLS (which defeats the MitM path) are largely protected; impact is confined to client-side availability (connection crash / DoS), with no authentication bypass, confidentiality, or integrity consequence. |
| Impact | This is a genuine but bounded availability-only issue, not a top-priority emergency. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (5.9, medium) is internally consistent with the advisory: the AC:H reflects the key precondition that the attacker must control the server side of the connection (a rogue or compromised MariaDB/MySQL server) or hold a machine-in-the-middle position, and C:N/I:N/A:H correctly captures that the only impact is crashing the client's connection handling or driving oversized allocations - no confidentiality, integrity, or authentication-bypass impact, as the vendor explicitly states. No EPSS score and no KEV status were provided in the input, so widespread or active exploitation cannot be asserted; the vuln.today decision label is 'this_month', indicating scheduled remediation rather than act_now/emergency urgency. The references contain the GHSA advisory and the fix commits/release tags only - there is no public exploit or PoC reference, so this is not weaponized. The practical risk hinges entirely on the trust model of the deployment: a client that only ever connects to trusted, TLS-authenticated database servers faces low real-world risk, whereas clients connecting over untrusted networks without strict TLS validation are meaningfully exposed to a DoS. Net: a legitimate patch-this-cycle item, not a drop-everything issue. |
| Exploit ScenarioDerived | An attacker who operates a rogue MariaDB/MySQL server, has compromised a legitimate one, or sits as a machine-in-the-middle on an unauthenticated client-server connection sends a length-encoded integer greater than Integer.MAX_VALUE in the wire protocol. When MariaDB Connector/J decodes it via readLength()/readIntLengthEncodedNotNull(), the value is narrowed to a negative or unrelated int and used as an allocation/read length, triggering a NegativeArraySizeException, out-of-bounds failure, or oversized allocation that crashes the client's connection handling. No public exploit code is present in the provided references - only the fix commits - so exploitation would require an attacker to craft the malformed protocol frame themselves. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 29, 2026
Truncation of oversized length-encoded integers in MariaDB Connector/J (maven org.mariadb.jdbc:mariadb-java-client) lets a malicious, compromised, or man-in-the-middle server crash or destabilize Java client connection handling. Versions 3.0.0 through 3.3.6, 3.4.0 through 3.4.4, and 3.5.0 through 3.5.9 narrow the protocol's unsigned 8-byte length-encoded integer to a Java int without range validation, so a value above Integer.MAX_VALUE wraps to a negative or unrelated length that is then used to size allocations or reads, producing NegativeArraySizeException, out-of-bounds failures, or oversized allocations. Impact is availability-only (no confidentiality or integrity effect) and exploitation requires control of the server side of the connection; no public exploit code has been identified at time of analysis, and the issue is not in CISA KEV.
RemediationAI
Upgrade MariaDB Connector/J to a fixed release on the matching branch: 3.3.7 for the 3.0.x/3.3.x line, 3.4.5 for the 3.4.x line, or 3.5.10 for the 3.5.x line, as published at https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7, /3.4.5 and /3.5.10 and documented in advisory GHSA-797x-p4mc-jwpm. The upstream fix commits (30d4a883377a9b7762e02ee2c60d54567032ab99, bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667, dbbadc3e215c47bdb913ddf50739ada09a7f23ea) add an explicit range check in ReadableByteBuf so malformed length-encoded values raise an exception instead of being narrowed. Because the vendor describes exploitation as requiring control of the server side of the connection, the practical exposure reduction available without upgrading is to connect only to trusted servers and enforce properly validated TLS, which defeats the machine-in-the-middle path - though it does nothing against a server that is itself malicious or compromised, so it is not a substitute for the update. No other compensating control is described in the available sources.
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
The MySQL/MariaDB client-server protocol encodes column counts, packet lengths and string/blob lengths as length-encoded integers, whose widest on-wire form is an unsigned 8-byte value. In MariaDB Connector/J these are decoded in org.mariadb.jdbc.client.ReadableByteBuf, specifically readLength() and readIntLengthEncodedNotNull(), which returned the raw result as (int) readLong() - a silent narrowing conversion. The root cause class is CWE-130 (Improper Handling of Length Parameter Inconsistency), with the truncation itself being CWE-190 (Integer Overflow or Wraparound): a server-supplied value above Integer.MAX_VALUE becomes a negative or unrelated int that every caller then treats as a length or element count. Downstream, that value drives array allocation and buffer read paths, yielding NegativeArraySizeException, out-of-bounds exceptions, or very large allocation attempts. The vendor fix adds an explicit range check in the decoder - rejecting any value outside [0, Integer.MAX_VALUE] with an IllegalArgumentException - rather than validating at each call site, so all decoding paths share the same guard. The flaw requires the server side of the connection to be hostile or tampered with; there is no client-side flag or non-default configuration that must be enabled, and the trigger is simply parsing a crafted server response.
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
Remote over the protocol (AV:N), but requires attacker to control the server or hold a MitM position (AC:H); client needs no credentials to the attacker (PR:N); availability-only crash/DoS, so C:N/I:N/A:H.
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.10, the ReadableByteBuf.readLength() and ReadableByteBuf.readIntLengthEncodedNotNull() methods narrowed the protocol's unsigned 8-byte length-encoded integer to a Java int without checking that the value fit a non-negative integer. Values above Integer.MAX_VALUE could wrap to a negative or unrelated length that downstream allocation and read paths used. A malicious or compromised server, or a machine-in-the-middle attacker, could trigger NegativeArraySizeException, out-of-bounds failures, or oversized allocation behavior in client connection handling. This issue is fixed in versions 3.3.7, 3.4.5, and 3.5.10.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
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-113386
GHSA-797x-p4mc-jwpm
NVD
CVE.org
EPSS
VulDB
Exploit-DB