
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-144605 is an out-of-bounds read vulnerability in PostGIS's rtpg_chartrim function that allows low-privileged database roles to trigger query aborts or backend crashes by supplying delimiter-only ST_Reclass range tokens. It affects all PostGIS versions through 3.7.0. The vulnerability was disclosed on December 4, 2026, with a patch committed to the PostGIS repository on the same day. It carries a CVSS v3.1 base score of 4.3 (Medium) and a CVSS v4.0 base score of 5.3 (Medium) (Github Advisory, VulnCheck).
The root cause is an out-of-bounds read (CWE-125) in the rtpg_chartrim function located in raster/rt_pg/rtpg_internal.c (lines 109–137 of PostGIS 3.7.0). The left-trim loop used strchr(remove, *input), which matches the '\0' null terminator, causing the loop to walk past the end of an all-delimiter string; the right-trim loop decremented the pointer past the start of the string without a bounds check. An attacker with a low-privileged database role can exploit this by calling ST_Reclass with a reclass expression containing a delimiter-only range token such as '()', causing the trim loops to overrun string bounds. The fix (commit 54ee375) adds a null-terminator check to the left-trim loop (while (*input && strchr(remove, *input) != NULL)) and bounds the right-trim loop to never step before the start of the string (PostGIS Source, PostGIS Commit).
Successful exploitation results in a denial-of-service condition: the affected query is aborted or the PostgreSQL backend process crashes. There is no confidentiality or integrity impact — the vulnerability does not expose data or allow unauthorized data modification. The scope is limited to the vulnerable database backend process, with no evidence of lateral movement potential or data exfiltration risk (Github Advisory, VulnCheck).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at the time of disclosure. The EPSS score is 0.0, reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires only low-privilege authenticated database access and no user interaction, making it relatively straightforward for any authenticated database user to trigger (Github Advisory, VulnCheck).
SELECT * FROM pg_extension WHERE extname = 'postgis_raster';.ST_Reclass with a reclass expression containing a delimiter-only range token, such as '()', for example: SELECT ST_Reclass(rast, 1, '():1', '8BUI', 0) FROM some_raster_table;rtpg_chartrim function processes the delimiter-only token, causing the trim loops to read past string bounds.ST_Reclass calls; log entries referencing memory access violations or segmentation faults in the PostGIS raster processing context.ST_Reclass with unusual or minimal reclass expressions such as '()', '[]', or other delimiter-only tokens appearing in pg_stat_activity or query audit logs.postgres child processes) coinciding with raster function calls, observable via system process monitoring or PostgreSQL log entries indicating backend crashes.Upgrade PostGIS to a version that includes the fix introduced in commit 54ee375 (authored by Aleksander Alekseev). The patch is documented in GitHub Advisory GHSA-84p6-mx6v-c7gx; the specific fixed release version is not yet enumerated in the advisory, so users should monitor the official PostGIS release page for a patched release beyond 3.7.0. As a temporary workaround, restrict database roles that do not require PostGIS raster or reclass functionality from executing ST_Reclass, and monitor query logs for calls to ST_Reclass with unusual or delimiter-only range tokens (Github Advisory, PostGIS Commit).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."