CVE-2026-119276
published medium CVSS 3.1 · 5.9MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mariadb-corporation | — | mariadb-connector-j>= 3.0.0, < 3.3.7 · >= 3.4.0, < 3.4.5 · >= 3.5.0, < 3.5.11 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-clientaarch64 | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-clientppc64le | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-clients390x | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-clientx86_64 | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-client-javadocaarch64 | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-client-javadocppc64le | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-client-javadocs390x | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | mariadb-java-client-javadocx86_64 | Advisory build | 3.5.11-1.1 | OPENSUSE-SU-2026:12401-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mariadb-corporation | mariadb-connector-j | >= 3.0.0, < 3.3.7 (affected)>= 3.4.0, < 3.4.5 (affected)>= 3.5.0, < 3.5.11 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-130 CWE-130: Improper Handling of Length Parameter Inconsistency
- CWE-789 CWE-789: Memory Allocation with Excessive Size Value
References
7- https://github.com/mariadb-corporation/mariadb-connector-j/commit/b9e1ee8d9b4d820d70719504cdfd5c97f1aede5f
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/beb445fcf9294113878fc05ac77f0efdf0596ac6
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/ea8c7b6537e50053444188a9a3fd9cae99550f56
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5
- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.11
- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-h599-m3w5-9m7x
Provider assertions
2GitHub_M · cna
MariaDB Connector/J: Rogue server can drive large heap allocations from server-declared lengths in OK packets
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e8e3b0d6326db749b07f855d321ff8a573636baadcca43fc3320b28c94ba8f84
- Ingested
- 30 Oct 2026, 17:14:28 UTC
- Source record
- Official CVE record