GHSA-797X-P4MC-JWPM
MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.5.10 | org.mariadb.jdbc:mariadb-java-client · -93 d desde divulgación | |
| Remediación | Parche 3.3.7 | org.mariadb.jdbc:mariadb-java-client · -9 d desde divulgación | |
| Remediación | Parche 3.4.5 | org.mariadb.jdbc:mariadb-java-client · -9 d desde divulgación | |
| Divulgación | Publicada | GHSA-797X-P4MC-JWPM divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
Summary
MariaDB Connector/J narrowed 8-byte length-encoded integers received from the
server to `int` without validation. A rogue or MitM server can send a value above
`Integer.MAX_VALUE` whose truncation becomes a negative or arbitrary length.
Details
The protocol encodes lengths as length-encoded integers, whose 8-byte form the
decoder (`readLength()` and `readIntLengthEncodedNotNull()`) returned as
`(int) readLong()`. A value above `Integer.MAX_VALUE` therefore wrapped to a
negative or unrelated `int`, used afterwards as a length to size allocations or
reads, which ended in `NegativeArraySizeException`, out-of-bounds exceptions or
oversized allocations.
The fix rejects any length-encoded value that does not fit a non-negative `int`
with an explicit error.
Impact
Availability only: a malicious or compromised server, or a MitM, can crash the
client's connection handling with unchecked exceptions or drive oversized
allocations. Exploitation requires control of the server side of the connection;
no authentication bypass, confidentiality or integrity impact.
Credit
Reported by fg0x0
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
mavenorg.mariadb.jdbc:mariadb-java-client |
Corregida | 3.3.7, 3.4.5, 3.5.10 | -9 d · -9 d · -93 d | 4.0.0 no afectada |
3.3.73.4.53.5.10Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2026-119279https://github.com/mariadb-corporation/mariadb-connector-j/security/advisories/GHSA-797x-p4mc-jwpmhttps://github.com/mariadb-corporation/mariadb-connector-j/commit/30d4a883377a9b7762e02ee2c60d54567032ab99https://github.com/mariadb-corporation/mariadb-connector-j/commit/bfd9f5ad666a6f7f5401a5b78f2ac2fbd6df8667https://github.com/mariadb-corporation/mariadb-connector-j/commit/dbbadc3e215c47bdb913ddf50739ada09a7f23eahttps://github.com/mariadb-corporation/mariadb-connector-jhttps://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.3.7https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.4.5https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.5.10Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
