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

Status: published. Published: 2026-10-29. Updated: 2026-11-03.

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.

## Remediation

- fix: org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.3.7. Check the advisory for supported release branches. (source: OSV GHSA-797x-p4mc-jwpm) — https://github.com/advisories/GHSA-797x-p4mc-jwpm
- fix: org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.4.5. Check the advisory for supported release branches. (source: OSV GHSA-797x-p4mc-jwpm) — https://github.com/advisories/GHSA-797x-p4mc-jwpm
- fix: org.mariadb.jdbc:mariadb-java-client (Maven): OSV reports a fixed version 3.5.10. Check the advisory for supported release branches. (source: OSV GHSA-797x-p4mc-jwpm) — https://github.com/advisories/GHSA-797x-p4mc-jwpm

## Affected products and versions

- mariadb-corporation / mariadb-connector-j: >= 3.0.0, < 3.3.7 (affected); >= 3.4.0, < 3.4.5 (affected); >= 3.5.0, < 3.5.10 (affected). Source: CNA: GitHub_M
-  / org.mariadb.jdbc:mariadb-java-client (org.mariadb.jdbc:mariadb-java-client): 3.0.1-beta (affected, Maven); 3.0.10 (affected, Maven); 3.0.11 (affected, Maven); 3.0.2-rc (affected, Maven); 3.0.3 (affected, Maven); 3.0.4 (affected, Maven); 3.0.5 (affected, Maven); 3.0.6 (affected, Maven); 3.0.7 (affected, Maven); 3.0.8 (affected, Maven); 3.0.9 (affected, Maven); 3.1.0 (affected, Maven); 3.1.1 (affected, Maven); 3.1.2 (affected, Maven); 3.1.3 (affected, Maven); 3.1.4 (affected, Maven); 3.2.0 (affected, Maven); 3.3.0 (affected, Maven); 3.3.1 (affected, Maven); 3.3.2 (affected, Maven); 3.3.3 (affected, Maven); 3.3.4 (affected, Maven); 3.3.5 (affected, Maven); 3.3.6 (affected, Maven); Ecosystem version events: introduced 3.0.0; fixed 3.3.7. Source: OSV GHSA-797x-p4mc-jwpm
-  / org.mariadb.jdbc:mariadb-java-client (org.mariadb.jdbc:mariadb-java-client): 3.4.0 (affected, Maven); 3.4.1 (affected, Maven); 3.4.2 (affected, Maven); 3.4.3 (affected, Maven); 3.4.4 (affected, Maven); Ecosystem version events: introduced 3.4.0; fixed 3.4.5. Source: OSV GHSA-797x-p4mc-jwpm
-  / org.mariadb.jdbc:mariadb-java-client (org.mariadb.jdbc:mariadb-java-client): 3.5.0 (affected, Maven); 3.5.1 (affected, Maven); 3.5.2 (affected, Maven); 3.5.3 (affected, Maven); 3.5.4 (affected, Maven); 3.5.5 (affected, Maven); 3.5.6 (affected, Maven); 3.5.7 (affected, Maven); 3.5.8 (affected, Maven); 3.5.9 (affected, Maven); Ecosystem version events: introduced 3.5.0; fixed 3.5.10. Source: OSV GHSA-797x-p4mc-jwpm

## Severity and prioritization

- CVSS 3.1: 5.9 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H; source: CNA: GitHub_M

- CVSS 3.1: 5.9 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.35% as of 2026-11-03; percentile 28.80%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-130, CWE-190

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99 (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667 (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23ea (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7 (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5 (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10 (security-advisories@github.com)

- https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpm (security-advisories@github.com)

- https://github.com/advisories/GHSA-797x-p4mc-jwpm (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-119279; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-119279; retrieved 2026-11-03; source updated 2026-11-03

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-797x-p4mc-jwpm; retrieved 2026-11-03; source updated 2026-10-30

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-119279; retrieved 2026-11-03; source updated Not reported

Revision: 2f532b4dd3481aac56a566db09923d17540243e5bc0ed545365b8f928dedc0ff

Canonical: https://y2.dev/cve/CVE-2026-119279

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.