# CVE-2026-144605: PostGIS through 3.7.0 Out-of-Bounds Read via rtpg_chartrim in ST_Reclass

Source: https://aplosec.si/cve/CVE-2026-144605/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-144605

Medium 5.3 · Reported · No fix listed · CWE-125 · Server

# PostGIS through 3.7.0 Out-of-Bounds Read via rtpg_chartrim in ST_Reclass

CVE-2026-144605 · published 2026-12-04

In plain words: this type of bug lets someone read or corrupt memory the program should keep private (memory safety). No fixed release is listed yet.

## Summary

CVE-2026-144605 affects PostGIS (Server) <= 3.7.0: Out-of-Bounds Read via rtpg_chartrim in ST_Reclass (CWE-125). No fixed release is listed. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

PostGIS through 3.7.0 contains an out-of-bounds read vulnerability in rtpg_chartrim that allows low-privileged database roles to read past string bounds by supplying delimiter-only ST_Reclass 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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/postgis-through-3.7.0-out-of-bounds-read-via-rtpg-chartrim-in-st-reclass](https://www.vulncheck.com/advisories/postgis-through-3.7.0-out-of-bounds-read-via-rtpg-chartrim-in-st-reclass)

- [Fix commithttps://github.com/postgis/postgis/commit/54ee375b4d06d713d9524e9493a30f36eeac091d](https://github.com/postgis/postgis/commit/54ee375b4d06d713d9524e9493a30f36eeac091d)

- [Vulnerable codehttps://github.com/postgis/postgis/blob/3.7.0/raster/rt_pg/rtpg_internal.c#L109-L137](https://github.com/postgis/postgis/blob/3.7.0/raster/rt_pg/rtpg_internal.c#L109-L137)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-144605](https://www.cve.org/CVERecord?id=CVE-2026-144605)

**Severity:** Medium 5.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-144605)

**Package:** PostGIS

**Ecosystem:** Server

**Affected:** <= 3.7.0

**Fixed:** None

**Weakness:** CWE-125

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
