Vulnerability
CVE-2026-119276
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.
73 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- CGA-2587-qwfw-4fq7
- CGA-26pg-8v2r-424x
- CGA-378f-c74h-chwg
- CGA-3jg5-7xm3-2ww6
- CGA-49m9-jxp9-9f8w
- CGA-4fpp-mg97-qfch
- CGA-52qx-p2mc-fp76
- CGA-79cw-jrp7-h8vr
- CGA-7mh6-jh65-vv89
- CGA-88qh-jjwh-2h78
- CGA-9j66-wpp9-g83w
- CGA-9x59-w8mw-fw4q
- CGA-f2jw-7vx3-q3f3
- CGA-gm94-q225-cmmw
- CGA-hvrq-pqg8-p5f4
- CGA-j994-h6wh-hj3v
- CGA-mc84-rr76-3q6m
- CGA-q2g2-w3rw-57wv
- CGA-qvfj-5rx3-hrcr
- CGA-vxvm-hqrp-v257
References
- 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