Use of Uninitialized Resource Affecting mariadb package, versions <3.2.5>=3.3.0 <3.3.4>=3.4.0 <3.4.7>=3.5.1 <3.5.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MARIADB-20883241
  • published13 Oct 2026
  • disclosed8 Oct 2026
  • creditfg0x0

Introduced: 8 Oct 2026

NewCVE-2026-107383  (opens in a new tab)
CWE-908  (opens in a new tab)

How to fix?

Upgrade mariadb to version 3.2.5, 3.3.4, 3.4.7, 3.5.4 or higher.

Overview

Affected versions of this package are vulnerable to Use of Uninitialized Resource via the GeoJSON Polygon and MultiPolygon encoding path in lib/cmd/encoder/binary-encoder.js when a ring element within the coordinates array is not a real array. The encoder sizes the output buffer using Buffer.allocUnsafe based on each ring's length property, then writes coordinate data only when the ring passes an Array.isArray check. When a non-array ring is supplied, the writing loop is skipped while the allocated bytes remain uninitialized, causing process heap memory to be transmitted to the database server in the binary protocol packet. An attacker who can supply GeoJSON Polygon or MultiPolygon query parameters can leak arbitrary Node.js process memory to the server.

CVSS Base Scores

version 4.0
version 3.1