Cyber Posture

CVE-2026-2004

High

Published: 12 February 2026

Published
12 February 2026
Modified
20 February 2026
KEV Added
Patch
CVSS Score 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0006 18.5th percentile
Risk Priority 18 60% EPSS · 20% KEV · 20% CVSS

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

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

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.

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 v18.1

NVD Description

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.

Deeper analysisAI

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.

Details

CWE(s)

Affected Products

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

CVEs Like This One

CVE-2026-2006Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-2005Same product: Postgresql Postgresql
CVE-2026-26115Shared CWE-1287
CVE-2026-42198Same vendor: Postgresql
CVE-2026-33806Shared CWE-1287
CVE-2025-12977Shared CWE-1287
CVE-2026-2092Shared CWE-1287
CVE-2025-20621Shared CWE-1287
CVE-2026-20119Shared CWE-1287

References