Read the docs

Excessive memory allocation in MariaDB Connector/J OK packet parsing

Priority LOW 26CWE-130Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 9 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-789.

Summary

MariaDB Connector/J versions from 3.0.0 before 3.3.7, from 3.4.0 before 3.4.5, and from 3.5.0 before 3.5.11 allocate byte arrays using lengths declared by the server in OK packets before checking that the bytes are present, when CLIENT_SESSION_TRACK is negotiated. This missing length check is classified as CWE-789. A malicious or compromised server, or a machine-in-the-middle attacker, can send a small OK packet with a much larger declared length to force repeated large heap allocations, which can cause garbage-collection pressure or an OutOfMemoryError in the client application.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00351 28th percentileScored 2026-11-07
Fix Partial mariadb-connector-j (mariadb-corporation): 3.3.7, 3.4.5, 3.5.11org.mariadb.jdbc:mariadb-java-client (Maven): 3.3.7, 3.4.5, 3.5.11Red Hat: 9 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MariaDBmariadb-connector-j3.0.0 to before 3.3.7; 3.4.0 to before 3.4.5; 3.5.0 to before 3.5.113.3.7, 3.4.5, 3.5.11Patch availableCNA
—org.mariadb.jdbc:mariadb-java-client (Maven)3.0.0 to before 3.3.73.3.7Patch availableGHSA-h599-m3w5-9m7x
—org.mariadb.jdbc:mariadb-java-client (Maven)3.4.0 to before 3.4.53.4.5Patch availableGHSA-h599-m3w5-9m7x
—org.mariadb.jdbc:mariadb-java-client (Maven)3.5.0 to before 3.5.113.5.11Patch availableGHSA-h599-m3w5-9m7x
  • mariadb-connector-j VendorMariaDB Affected 3.0.0 to before 3.3.7; 3.4.0 to before 3.4.5; 3.5.0 to before 3.5.11 Fixed in 3.3.7, 3.4.5, 3.5.11 Patch available CNA
  • org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.0.0 to before 3.3.7 Fixed in 3.3.7 Patch available GHSA-h599-m3w5-9m7x
  • org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.4.0 to before 3.4.5 Fixed in 3.4.5 Patch available GHSA-h599-m3w5-9m7x
  • org.mariadb.jdbc:mariadb-java-client (Maven) Vendor— Affected 3.5.0 to before 3.5.11 Fixed in 3.5.11 Patch available GHSA-h599-m3w5-9m7x

Remediation

MariaDB Connector/J is fixed in 3.3.7, 3.4.5 and 3.5.11, and the Maven artifact org.mariadb.jdbc:mariadb-java-client is fixed in the same versions. Red Hat rates the issue Moderate and lists these products as affected without a fix: Red Hat Build of Keycloak, Red Hat Enterprise Linux 8, 9 and 10, Red Hat OpenShift AI (RHOAI), Red Hat Satellite 6, Red Hat build of Debezium 3 and Red Hat build of Quarkus, with plan none available, and Red Hat OpenStack Platform 13 (Queens), with plan no fix planned.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA mariadb-connector-j (mariadb-corporation) Fixed in 3.3.7, 3.4.5, 3.5.11
  • Fix · GHSA-h599-m3w5-9m7x org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.3.7 Advisory →
  • Fix · GHSA-h599-m3w5-9m7x org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.4.5 Advisory →
  • Fix · GHSA-h599-m3w5-9m7x org.mariadb.jdbc:mariadb-java-client (Maven) Fixed in 3.5.11 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Build of KeycloakAffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Out of support scope
Red Hat Satellite 6AffectedNo fix yet: Fix deferred
Red Hat build of Debezium 3AffectedNo fix yet: Fix deferred
Red Hat build of QuarkusAffectedNo fix yet
Not affected: 1 product
  • Red Hat Hardened Images

Timeline

  1. 2026-10-29 Threatist record created from CVE-2026-119276
  2. 2026-10-30 CISA SSVC decision points changed
  3. 2026-10-30 Priority changed: MEDIUM → LOW
  4. 2026-10-30 Alias added: GHSA-h599-m3w5-9m7x
  5. 2026-10-30 Fix available: Maven/org.mariadb.jdbc:[email protected], Maven/org.mariadb.jdbc:[email protected], Maven/org.mariadb.jdbc:[email protected] · GHSA-h599-m3w5-9m7x
  6. 2026-10-30 CVSS score added · GHSA-h599-m3w5-9m7x
  7. 2026-10-30 Weakness changed · GHSA-h599-m3w5-9m7x
  8. 2026-10-30 9 new references · GHSA-h599-m3w5-9m7x
  9. 2026-11-02 Affected versions changed · Red Hat
  10. 2026-11-02 CVSS score added · Red Hat
  11. 2026-11-04 Affected versions changed · Red Hat

References

  • TI-2023-11776 MariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via… CVSS 3.1CRITICAL 9.8
  • TI-2016-05707 Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB… CVSS 3.0CRITICAL 9.8
  • TI-2022-00687 Infinite loop in BN_mod_sqrt() reachable when parsing certificates CVSS 3.1HIGH 7.5
  • TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
  • TI-2014-00188 The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0… CVSS 2.0MEDIUM 6.8
  • TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
See all 459 →

Sources