See how postgis compares to other vendors in security performance
PostGIS before 3.7.0 contains an integer overflow vulnerability in rtrastergeneratenewband that allows authenticated database roles to access out-of-bounds memory by creating oversized raster bands. Attackers can call STMakeEmptyRaster and STAddBand with large dimensions, then STValue or STSetValue to read or write backend heap memory, crashing the cluster.
PostGIS through 3.7.0 contains an out-of-bounds read vulnerability in RASTERreclass that allows low-privileged database roles to crash the server by supplying a range consisting only of a bracket. Attackers can call STReclass with a crafted reclass expression like '(:1' to read past the token array, triggering SIGSEGV and a cluster restart that drops all sessions.
PostGIS through 3.7.0 contains an out-of-bounds read vulnerability in rtpgchartrim that allows low-privileged database roles to read past string bounds by supplying delimiter-only STReclass range tokens. Attackers can pass a reclass expression containing a token such as '()' so the trim loops overrun the string, aborting queries or crashing the backend.
PostGIS addressstandardizer through 3.7.0 fails to validate the Weight parameter from caller-supplied rules tables before using it as an array index. Attackers can craft malicious rule rows with out-of-range Weight values to trigger out-of-bounds reads in the loadvalue array, causing the PostgreSQL backend process to crash and terminate all cluster sessions.
PostGIS before 3.7.0beta2 contains an out-of-bounds read vulnerability that allows attackers to cause memory disclosure or a server crash by supplying a malformed FlatGeobuf buffer. The FlatGeobuf property metadata decoder verifies that a string length field is present but fails to verify that the subsequent string body is contained within the supplied buffer before materializing it into a SQL-visible value, enabling memory disclosure or denial of service.
PostGIS < 3.7.0beta2 Out-of-Bounds Read via FlatGeobuf Buffer
PostGIS before 3.7.0beta2 contains an out-of-bounds read vulnerability that allows attackers to cause memory disclosure or a server crash by supplying a malformed FlatGeobuf buffer. The FlatGeobuf property metadata decoder verifies that a string length field is present but fails to verify that the subsequent string body is contained within the supplied buffer before materializing it into a SQL-visible value, enabling memory disclosure or denial of service.
PostGIS 2.x before 2.3.3, as used with PostgreSQL, allows remote attackers to cause a denial of service via crafted STAsX3D function input, as demonstrated by an abnormal server termination for "SELECT STAsX3D('LINESTRING EMPTY');" because empty geometries are mishandled.