Vulnerability DatabaseCVE-2026-144604

CVE-2026-144604: 
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2026-144604 is an out-of-bounds read vulnerability in PostGIS's RASTER_reclass function that allows low-privileged, authenticated database users to crash the PostgreSQL server cluster. It affects PostGIS through version 3.7.0 and was disclosed on December 4, 2026. A crafted reclass expression (e.g., '(:1') causes the function to read past the end of its token array, triggering a SIGSEGV signal that restarts the database cluster and terminates all active sessions. The vulnerability carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 7.1 (High) (Github Advisory).

Technical details

The root cause is an out-of-bounds read (CWE-125) in the RASTER_reclass function within raster/rt_pg/rtpg_mapalgebra.c. When parsing a reclass range expression, the code at lines 3829–3870 of the 3.7.0 source checks c < 1 before accessing dash_set[c+1], but fails to verify that c + 1 < dash_n — meaning a bracket-only token like '(' or '[' with no following element causes an out-of-bounds array read (PostGIS Source). The fix, committed by Aleksander Alekseev, adds the guard c + 1 < dash_n to the conditional before accessing the next token (PostGIS Commit). Exploitation requires only a low-privileged database role with the ability to call ST_Reclass over a network connection — no special configuration or elevated privileges are needed beyond basic database access.

Impact

Successful exploitation results in a complete denial of service for the entire PostgreSQL cluster: the SIGSEGV crash forces a cluster restart, immediately dropping all active database sessions for all users — not just the attacker's session (Github Advisory). There is no confidentiality or integrity impact; the vulnerability is purely an availability issue. In multi-tenant or shared database environments, a single low-privileged user can disrupt all other tenants and applications relying on the same PostgreSQL instance.

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at the time of disclosure (Github Advisory). The EPSS score is 0.0, reflecting a very low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Despite the lack of active exploitation, the attack is trivially reproducible by any authenticated database user with access to ST_Reclass, requiring only a single malformed SQL call.

Exploitation steps

  1. Gain database access: Obtain any low-privileged PostgreSQL database account that has EXECUTE permission on the ST_Reclass function in a PostGIS-enabled database running version 3.7.0 or earlier.
  2. Identify PostGIS version: Confirm the installed PostGIS version with SELECT PostGIS_Full_Version(); to verify the target is vulnerable (≤ 3.7.0).
  3. Craft the malicious query: Construct a call to ST_Reclass with a reclass expression consisting only of a bracket, such as:
    SELECT ST_Reclass(rast, 1, '(:1', '8BUI', 0) FROM some_raster_table LIMIT 1;
  4. Trigger the crash: Execute the query. The RASTER_reclass C function parses the expression, encounters the lone bracket token, and reads past the end of the dash_set token array, triggering a SIGSEGV.
  5. Cluster restart: PostgreSQL's postmaster detects the backend crash and initiates a cluster restart, terminating all active sessions across the entire database cluster (Github Advisory, PostGIS Source).

Indicators of compromise

  • Logs: PostgreSQL server log entries showing FATAL: terminating connection due to administrator command or LOG: server process (PID XXXX) was terminated by signal 11: Segmentation fault immediately following a query involving ST_Reclass or RASTER_reclass.
  • Logs: PostgreSQL log entries showing LOG: database system is shut down and subsequent LOG: database system was shut down restart messages in rapid, unexpected succession.
  • Logs: PostgreSQL query logs (if log_min_duration_statement is enabled) showing calls to ST_Reclass with reclass expressions containing only bracket characters (e.g., '(:1', '[:1', '):', ']:').
  • Process: Unexpected termination and restart of the postgres postmaster process observable via system process monitoring or service management logs (e.g., systemd journal entries for the PostgreSQL service).
  • Network: Repeated short-lived database connections from the same client IP followed by cluster restart events, potentially indicating repeated denial-of-service attempts.

Mitigation and workarounds

Upgrade PostGIS to a version later than 3.7.0 that includes the fix from commit ab5b0255a487b5859db3ce94636f46446158b379, which adds a bounds check (c + 1 < dash_n) before accessing the next token in the reclass expression parser (PostGIS Commit). As a temporary workaround until patching is possible, revoke EXECUTE permission on ST_Reclass from all non-essential database roles using REVOKE EXECUTE ON FUNCTION ST_Reclass(...) FROM <role>;. Additionally, monitor PostgreSQL logs for unexpected cluster restarts and investigate any associated ST_Reclass calls.

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