Skip to main content

MariaDB Connector/J CVE-2026-119279

| EUVDEUVD-2026-113386 MEDIUM
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-10-29 GitHub_M GHSA-797x-p4mc-jwpm
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 MitM position or control rogue/compromised DB server
  2. Delivery
    Client initiates connection to server
  3. Exploit
    Server sends length-encoded integer above Integer.MAX_VALUE
  4. Execution
    Driver narrows value to negative/unrelated int as a length
  5. Impact
    NegativeArraySizeException 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.

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

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

mariadb-connector-j 3.4.0, < 3.4.5
mariadb-connector-j 3.5.0, < 3.5.10
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.10
euvd mariadb_connector_j fix: 3.3.7, 3.4.5, 3.5.10

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

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

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.

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
common Java JDBC driver for MariaDB/MySQL, but one specific library not universal
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

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.

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