CVE-2026-107383
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-48qf-xh34-q73rBIT-MARIADB-2026-107383BIT-MARIADB-MIN-2026-107383BIT-MYSQL-CLIENT-2026-107383

Description

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4, the GeoJSON Polygon and MultiPolygon binary encoders size a Buffer.allocUnsafe() allocation from each ring's numeric length before confirming that the ring is an array. A malformed non-array ring can therefore reserve bytes that the writing loop skips, and the connector sends the full buffer through execute() or batch(), disclosing uninitialized Node.js heap data into a database value. The persisted data can include other users' content, session material, database credentials, or TLS key material and may propagate to backups and replicas. The text-protocol query() path is not affected. This issue is fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4.

Affected

Product or packageVersionsReported by
mariadb-corporation mariadb-connector-nodejs< 3.2.5, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.7, >= 3.5.0-rc.0, < 3.5.4CVE List
mariadb (npm)before 3.2.5, from 3.3.0 before 3.3.4, from 3.4.0 before 3.4.7, from 3.5.0-rc.0 before 3.5.4GitHub Advisory Database
mariadb (Bitnami)before 3.2.5, from 3.3.0 before 3.3.4, from 3.4.0 before 3.4.7, from 3.5.0 before 3.5.4Bitnami Vulnerability Database
mariadb-min (Bitnami)before 3.2.5, from 3.3.0 before 3.3.4, from 3.4.0 before 3.4.7, from 3.5.0 before 3.5.4Bitnami Vulnerability Database
mysql-client (Bitnami)before 3.2.5, from 3.3.0 before 3.3.4, from 3.4.0 before 3.4.7, from 3.5.0 before 3.5.4Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4, the GeoJSON Polygon and MultiPolygon binary encoders size a Buffer.allocUnsafe() allocation from each ring's numeric length before confirming that the ring is an array. A malformed non-array ring can therefore reserve bytes that the writing loop skips, and the connector sends the full buffer through execute() or batch(), disclosing uninitialized Node.js heap data into a database value. The persisted data can include other users' content, session material, database credentials, or TLS key material and may propagate to backups and replicas. The text-protocol query() path is not affected. This issue is fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4.

GitHub Advisory Database
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.

References

https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-48qf-xh34-q73rweb
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/2314c03b785db482599d2befd06f4992e5fc46b3web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/a4aa048b57dc47309b80e5cc25a4a8eedb32fd9fweb
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/b2ca628864b0fc2e3e94ea96910f6b693ad5bd30web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/faa27d1b2b7753a54000f586d5148089b60d1284web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4web
https://jira.mariadb.org/browse/CONJS-367web
https://github.com/mariadb-corporation/mariadb-connector-nodejspackage
https://nvd.nist.gov/vuln/detail/CVE-2026-107383web

Sources

SourceRecordLicence
CVE ListCVE-2026-107383 changed 2026-10-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-48qf-xh34-q73r changed 2026-10-16CC-BY-4.0
NVDCVE-2026-107383 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-MARIADB-2026-107383 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-MARIADB-MIN-2026-107383 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-MYSQL-CLIENT-2026-107383 changed 2026-10-16Apache-2.0