llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · mariadb

GHSA-48QF-XH34-Q73R

MariaDB Connector/Node.js exposes uninitialized process memory through malformed GeoJSON parameters

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche4 versionesPrimer parche a -37 d de la divulgación
Exposición42 dDesde la divulgación, 8 oct 2026, 2:42 p. m.
Detección39 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 3.2.5 +3
Monitoreo
Detectada
1 sept 26
8 oct 26
16 oct 26
17 nov 26
19 nov 26
1 sept 26
21 sept 26
11 oct 26
31 oct 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.2.5 mariadb · -37 d desde divulgación
Remediación Parche 3.3.4 mariadb · -37 d desde divulgación
Remediación Parche 3.4.7 mariadb · -37 d desde divulgación
Remediación Parche 3.5.4 mariadb · -37 d desde divulgación
Divulgación Publicada GHSA-48QF-XH34-Q73R divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Description
When encoding a GeoJSON Polygon or MultiPolygon parameter for the binary protocol, the connector sized its output buffer from the length property of each ring, then wrote each ring only if it was a real array. The two loops disagreed: any non-array ring carrying a numeric length (a string, or an object such as {"length": 4000}) still reserved 4 + 16 * length bytes, but wrote none of them. The buffer came from Buffer.allocUnsafe() and was returned in full regardless of how far the write position had advanced, so every reserved-but-unwritten byte was uninitialized Node.js heap.

The sibling LineString case handled this correctly, aborting with null on the first malformed point, so no reserved byte could escape unwritten.

The only gate on this path is value.type naming a GeoJSON type, so any object shaped like {"type": "Polygon", ...} reached the encoder.

### Impact
An application that passes an attacker-influenced object as a parameter to execute() or batch() writes uninitialized process memory into the database, where it is readable by anyone who can read that row and persists into backups and replicas. Applications accepting GeoJSON for map or location features are the natural case, as the attacker controls coordinates directly.

The disclosed memory is not scoped to the requesting user: in a shared Node.js process the heap may hold other users' request and response bodies, session tokens and cookies, database credentials and TLS key material. The leak is silent — the insert succeeds and the column simply holds more bytes than it should.

No non-default connector option and no particular server configuration are required. query() is not affected: the text encoder builds geometry as strings rather than through Buffer.allocUnsafe().

### Resolution
Both the Polygon and MultiPolygon encoders now reject a non-array ring before reserving space for it, so no byte of the allocation can be left uninitialized by the writing loop, matching the existing LineString behaviour.

###
Workarounds
Validate that GeoJSON coordinates are properly nested arrays of numbers before passing the object as a parameter, or use query(), until upgraded.

Versiones

Rangos afectados

Afectada Corregida Última
mariadb< 3.2.5
mariadb≥ 3.3.0 < 3.3.4
mariadb≥ 3.4.0 < 3.4.7
mariadb≥ 3.5.0-rc.0 < 3.5.4
3.2.5
3.3.0
3.3.4
3.4.0
3.4.7
3.5.0-rc.0
3.5.4
3.5.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmmariadb
Corregida 3.2.5, 3.3.4, 3.4.7, 3.5.4 -37 d · -37 d · -37 d · -37 d 3.5.5 no afectada
Versiones corregidas3.2.53.3.43.4.73.5.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-48qf-xh34-q73r
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/2314c03b785db482599d2befd06f4992e5fc46b3
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/a4aa048b57dc47309b80e5cc25a4a8eedb32fd9f
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/b2ca628864b0fc2e3e94ea96910f6b693ad5bd30
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/faa27d1b2b7753a54000f586d5148089b60d1284
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7
Otrahttps://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4
Otrahttps://jira.mariadb.org/browse/CONJS-367

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.