Cyber Resilience

CVE-2026-2004

HighUpdated

Published: 12 February 2026

Published
12 February 2026
Modified
30 June 2026
KEV Added
Patch
CVSS Score v3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0050 38.9th percentile
Risk Priority 55 floored blend · peak EPSS

Summary

CVE-2026-2004 is a high-severity Improper Validation of Specified Type of Input (CWE-1287) vulnerability in Postgresql Postgresql. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 38.9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Deeper analysis

CVE-2026-2004 stems from missing validation of input types in the selectivity estimator function of PostgreSQL's intarray extension. This vulnerability affects PostgreSQL versions prior to 18.2, 17.8, 16.12, 15.16, and 14.21. It allows an object creator to execute arbitrary code with the privileges of the operating system user running the database, as classified under CWE-1287.

The attack requires low privileges (PR:L), such as the ability to create database objects, and can be carried out remotely over the network (AV:N) with low complexity (AC:L) and no user interaction (UI:N). Exploitation yields high impacts on confidentiality, integrity, and availability (C:H/I:H/A:H), enabling arbitrary code execution as the database process's OS user, with a CVSS v3.1 base score of 8.8.

The official PostgreSQL security advisory at https://www.postgresql.org/support/security/CVE-2026-2004/ recommends upgrading to one of the patched versions—18.2, 17.8, 16.12, 15.16, or 14.21—which incorporate input type validation to prevent the arbitrary code execution.

EU & UK References

Vulnerability details

Missing validation of type of input in PostgreSQL intarray extension selectivity estimator function allows an object creator to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
Why these techniques?

RCE via remote exploitation of PostgreSQL intarray extension (public-facing DB server) with DB object creation leading to OS-level code execution under DB process privileges.

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-2006Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-6473Same product: Postgresql Postgresql
CVE-2026-6637Same product: Postgresql Postgresql
CVE-2026-6476Same product: Postgresql Postgresql
CVE-2026-2005Same product: Postgresql Postgresql
CVE-2026-6475Same product: Postgresql Postgresql
CVE-2026-6479Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql
CVE-2026-26115Shared CWE-1287

Affected Assets

postgresql
postgresql
14.0 — 14.21 · 15.0 — 15.16 · 16.0 — 16.12

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Timely remediation of flaws through vendor patches directly prevents exploitation of the missing input validation in PostgreSQL's intarray extension selectivity estimator.

prevent

Information input validation enforces type checking in database functions and extensions, directly addressing the root cause of arbitrary code execution via invalid inputs.

prevent

Least functionality restricts enabled extensions to only essential ones, preventing use of the vulnerable intarray extension if not required.

References