All vulnerabilities

Servers and applications

GHSA-cp3h-jjxp-9pvr

Out-of-bound buffer read in ST_NumPoints() and ST_NumGeometries() of a truncated WKB

Severity
Medium 4.3
Published
13 Nov 2026
Last changed
13 Nov 2026
Added to UpHeron
13 Nov 2026
Weakness
Out-of-bounds read (CWE-125)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Sources
Project advisories (GitHub)

Description

GIS functions, such as ST_NumPoints(), ST_NumGeometries() and ST_IsValid(), did not verify that a LineString, MultiPoint, MultiLineString or MultiPolygon in WKB format was long enough to contain the number of elements. For a truncated WKB value they read 4 bytes beyond the end of the buffer, and ST_NumPoints() and ST_NumGeometries() returned these bytes to the user.

From MariaDB/server's security advisory.

Workarounds

There is no workaround.

Workarounds as given by MariaDB/server's security advisory.

Affected software

SoftwareAffected versions
MariaDBServers and applications · github:mariadb/server
  • Version 12.3.1

References