All vulnerabilities
CVE-2026-107383BIT-mariadb-2026-107383BIT-mariadb-min-2026-107383BIT-mysql-client-2026-107383GHSA-48qf-xh34-q73r

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

mariadb-corporation mariadbnpmDatabases
CVSS
7.5High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.39%Chance of exploitation activity in the next 30 days, higher than 31% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in3.2.5Also 3.3.4, 3.4.7 and 1 moreGitHub
Published8 Oct 2026Updated 16 Oct 2026CVE List

What fixes it

  • 3.2.5mariadb, npmGitHubnpm install mariadb@3.2.5
  • 3.3.4mariadb, npmGitHubnpm install mariadb@3.3.4
  • 3.4.7mariadb, npmGitHubnpm install mariadb@3.4.7
  • 3.5.4mariadb, npmGitHubnpm install mariadb@3.5.4

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

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.

Text from GitHub Advisory Database

Affected versions 12

  • mariadb, npm< 3.2.5GitHub
  • mariadb, npm>= 3.3.0, < 3.3.4GitHub
  • mariadb, npm>= 3.4.0, < 3.4.7GitHub
  • mariadb, npm>= 3.5.0-rc.0, < 3.5.4GitHub
  • mariadb-connector-nodejsaffected: < 3.2.5CVE List
  • mariadb-connector-nodejsaffected: >= 3.3.0, < 3.3.4CVE List
  • mariadb-connector-nodejsaffected: >= 3.4.0, < 3.4.7CVE List
  • mariadb-connector-nodejsaffected: >= 3.5.0-rc.0, < 3.5.4CVE List
  • mariadb, npmfrom first release, fixed in 3.2.5OSV
  • mariadb, npmfrom 3.3.0, fixed in 3.3.4OSV
  • mariadb, npmfrom 3.4.0, fixed in 3.4.7OSV
  • mariadb, npmfrom 3.5.0-rc.0, fixed in 3.5.4OSV

References 11