Vulnerability DatabaseCVE-2026-144605

CVE-2026-144605: 
PostgreSQL vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Obtain low-privileged database access: Acquire any valid database role on a PostgreSQL instance with PostGIS 3.7.0 or earlier installed, including standard user accounts with minimal permissions.
  2. Identify PostGIS raster support: Confirm that the PostGIS raster extension is enabled by querying SELECT * FROM pg_extension WHERE extname = 'postgis_raster';.
  3. Craft a malicious ST_Reclass call: Construct a SQL query invoking 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;
  4. Submit the query: Execute the crafted query against the target database. The rtpg_chartrim function processes the delimiter-only token, causing the trim loops to read past string bounds.
  5. Achieve denial of service: The out-of-bounds read causes the query to abort or the PostgreSQL backend process to crash, disrupting database availability for other users (PostGIS Source, Github Advisory).

Indicators of compromise

  • Logs: PostgreSQL server logs showing unexpected backend process crashes or ERROR/FATAL messages associated with ST_Reclass calls; log entries referencing memory access violations or segmentation faults in the PostGIS raster processing context.
  • Database Query Logs: Queries containing ST_Reclass with unusual or minimal reclass expressions such as '()', '[]', or other delimiter-only tokens appearing in pg_stat_activity or query audit logs.
  • Process: Unexpected termination of PostgreSQL backend worker processes (postgres child processes) coinciding with raster function calls, observable via system process monitoring or PostgreSQL log entries indicating backend crashes.

Mitigation and workarounds

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 9

postgresql:16/postgis.src

Affected

RHEL 10

postgresql16-postgis.src

Affected

Source: This report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-144604HIGH7.1
  • PostgreSQL logoPostgreSQL
  • postgresql:18::postgis-client
NoYesDec 04, 2026
CVE-2026-124024MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • fabric-ca-server-dev
NoYesNov 17, 2026
CVE-2026-121758MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • glibc-langpack-yue
NoYesNov 17, 2026
CVE-2026-144605MEDIUM5.3
  • PostgreSQL logoPostgreSQL
  • postgis-gui
NoYesDec 04, 2026
CVE-2026-126765LOW3.7
  • PostgreSQL logoPostgreSQL
  • rf-glibc-langpack-su
NoYesNov 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management