8.8
HIGH CVSS 3.1
CVE-2026-2004
PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code
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.

INFO

Published Date :

Feb. 12, 2026, 2:16 p.m.

Last Modified :

June 30, 2026, 3:18 a.m.

Remotely Exploit :

No

Source :

f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Affected Products

The following products are affected by CVE-2026-2004 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Postgresql postgresql
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS 3.1 HIGH MITRE-CVE
CVSS 3.1 HIGH 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Solution
Update PostgreSQL to a patched version to prevent arbitrary code execution.
  • Update PostgreSQL to version 14.21 or later.
  • Update PostgreSQL to version 15.16 or later.
  • Update PostgreSQL to version 16.12 or later.
  • Update PostgreSQL to version 17.8 or later.
Public PoC/Exploit Available at Github

CVE-2026-2004 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-2004.

URL Resource
https://www.postgresql.org/support/security/CVE-2026-2004/ Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:19009
https://access.redhat.com/errata/RHSA-2026:19010
https://access.redhat.com/errata/RHSA-2026:3730
https://access.redhat.com/errata/RHSA-2026:3887
https://access.redhat.com/errata/RHSA-2026:3896
https://access.redhat.com/errata/RHSA-2026:4024
https://access.redhat.com/errata/RHSA-2026:4059
https://access.redhat.com/errata/RHSA-2026:4063
https://access.redhat.com/errata/RHSA-2026:4064
https://access.redhat.com/errata/RHSA-2026:4074
https://access.redhat.com/errata/RHSA-2026:4075
https://access.redhat.com/errata/RHSA-2026:4110
https://access.redhat.com/errata/RHSA-2026:4254
https://access.redhat.com/errata/RHSA-2026:4441
https://access.redhat.com/errata/RHSA-2026:4475
https://access.redhat.com/errata/RHSA-2026:4504
https://access.redhat.com/errata/RHSA-2026:4505
https://access.redhat.com/errata/RHSA-2026:4506
https://access.redhat.com/errata/RHSA-2026:4509
https://access.redhat.com/errata/RHSA-2026:4515
https://access.redhat.com/errata/RHSA-2026:4516
https://access.redhat.com/errata/RHSA-2026:4518
https://access.redhat.com/errata/RHSA-2026:4524
https://access.redhat.com/errata/RHSA-2026:4528
https://access.redhat.com/errata/RHSA-2026:4544
https://access.redhat.com/errata/RHSA-2026:4546
https://access.redhat.com/errata/RHSA-2026:4547
https://access.redhat.com/errata/RHSA-2026:4548
https://access.redhat.com/errata/RHSA-2026:4943
https://access.redhat.com/errata/RHSA-2026:8756
https://access.redhat.com/security/cve/CVE-2026-2004
https://bugzilla.redhat.com/show_bug.cgi?id=2439325
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2004.json
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-2004 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-2004 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

An Agent Skill that reviews and writes PostgreSQL/Supabase authentication code against a researched set of common and uncommon security mistakes - before it ships.

agent-skills agent-skills- authentication claude-code cloudflare codex cursor cybersecurity jwt postgres postgresql rls row-level-security security supabase

Shell

Updated: 2 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : June 23, 2026, 12:55 p.m. This repo has been linked 6 different CVEs too.

A home lab vulnerabillity assessment using Nessus Essentials. Scanned a local network of 4 machines (Windows Server, Windows 10, Ubuntu Server, Kali Linux and documented findings using CVSS v3.0 severity scoring

Updated: 3 days, 8 hours ago
1 stars 0 fork 0 watcher
Born at : May 13, 2026, 10:27 a.m. This repo has been linked 7 different CVEs too.

Hands-on vulnerability assessment project using Tenable Nessus Essentials on a home lab environment

Updated: 2 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : May 2, 2026, 8:18 a.m. This repo has been linked 7 different CVEs too.

Herramienta en Go para leer objetivos en formato software:version o vendor:software:version, consultar varias fuentes y generar una salida pensada para validacion manual: results.json y report.html.

Go Shell

Updated: 1 month, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : March 11, 2026, 8:09 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-2004 vulnerability anywhere in the article.

  • Daily CyberSecurity
PostgreSQL Fixes 5 Security Flaws Including Critical Code Execution Risks

The PostgreSQL Global Development Group has issued a critical alert for database administrators worldwide, releasing a comprehensive update to address five distinct security vulnerabilities. The patch ... Read more

Published Date: Feb 18, 2026 (4 months, 3 weeks ago)

The following table lists the changes that have been made to the CVE-2026-2004 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

    Jun. 30, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:/o:redhat:enterprise_linux_eus:10.0'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v. 10.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:10.1', 'cpe:/o:redhat:enterprise_linux:10.2'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 10)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.2::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v. 8.2)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v.8.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus_long_life:8.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_aus:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream AUS (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_tus:8.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream TUS (v.8.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:8.8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.8.8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_tus:8.8::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream TUS (v.8.8)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:9.0::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.9.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_e4s:9.2::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream E4S (v.9.2)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.4::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v.9.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.6::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream EUS (v.9.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:9::appstream'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 9)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux_eus:10.0'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:10.1', 'cpe:/o:redhat:enterprise_linux:10.2'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.4::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat CodeReady Linux Builder EUS (v.9.4)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhel_eus:9.6::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat CodeReady Linux Builder EUS (v.9.6)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:enterprise_linux:9::crb'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:hummingbird:1'], 'vendor': 'Red Hat', 'product': 'Red Hat Hardened Images', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:rhui:5::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat Update Infrastructure 5', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:6'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 6', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 7', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'defaultStatus': 'affected'}]
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-1287
    Added Reference https://access.redhat.com/errata/RHSA-2026:19009
    Added Reference https://access.redhat.com/errata/RHSA-2026:19010
    Added Reference https://access.redhat.com/errata/RHSA-2026:3730
    Added Reference https://access.redhat.com/errata/RHSA-2026:3887
    Added Reference https://access.redhat.com/errata/RHSA-2026:3896
    Added Reference https://access.redhat.com/errata/RHSA-2026:4024
    Added Reference https://access.redhat.com/errata/RHSA-2026:4059
    Added Reference https://access.redhat.com/errata/RHSA-2026:4063
    Added Reference https://access.redhat.com/errata/RHSA-2026:4064
    Added Reference https://access.redhat.com/errata/RHSA-2026:4074
    Added Reference https://access.redhat.com/errata/RHSA-2026:4075
    Added Reference https://access.redhat.com/errata/RHSA-2026:4110
    Added Reference https://access.redhat.com/errata/RHSA-2026:4254
    Added Reference https://access.redhat.com/errata/RHSA-2026:4441
    Added Reference https://access.redhat.com/errata/RHSA-2026:4475
    Added Reference https://access.redhat.com/errata/RHSA-2026:4504
    Added Reference https://access.redhat.com/errata/RHSA-2026:4505
    Added Reference https://access.redhat.com/errata/RHSA-2026:4506
    Added Reference https://access.redhat.com/errata/RHSA-2026:4509
    Added Reference https://access.redhat.com/errata/RHSA-2026:4515
    Added Reference https://access.redhat.com/errata/RHSA-2026:4516
    Added Reference https://access.redhat.com/errata/RHSA-2026:4518
    Added Reference https://access.redhat.com/errata/RHSA-2026:4524
    Added Reference https://access.redhat.com/errata/RHSA-2026:4528
    Added Reference https://access.redhat.com/errata/RHSA-2026:4544
    Added Reference https://access.redhat.com/errata/RHSA-2026:4546
    Added Reference https://access.redhat.com/errata/RHSA-2026:4547
    Added Reference https://access.redhat.com/errata/RHSA-2026:4548
    Added Reference https://access.redhat.com/errata/RHSA-2026:4943
    Added Reference https://access.redhat.com/errata/RHSA-2026:8756
    Added Reference https://access.redhat.com/security/cve/CVE-2026-2004
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2439325
    Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2004.json
  • CVE Modified by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'n/a', 'product': 'PostgreSQL', 'versions': [{'status': 'affected', 'version': '18', 'lessThan': '18.2', 'versionType': 'rpm'}, {'status': 'affected', 'version': '17', 'lessThan': '17.8', 'versionType': 'rpm'}, {'status': 'affected', 'version': '16', 'lessThan': '16.12', 'versionType': 'rpm'}, {'status': 'affected', 'version': '15', 'lessThan': '15.16', 'versionType': 'rpm'}, {'status': 'affected', 'version': '0', 'lessThan': '14.21', 'versionType': 'rpm'}], 'defaultStatus': 'unaffected'}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-2004', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-02-13T04:56:33.418080Z'}
  • Initial Analysis by [email protected]

    Feb. 20, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 18.0 up to (excluding) 18.2 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 14.0 up to (excluding) 14.21 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 15.0 up to (excluding) 15.16 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 16.0 up to (excluding) 16.12 *cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* versions from (including) 17.0 up to (excluding) 17.8
    Added Reference Type PostgreSQL: https://www.postgresql.org/support/security/CVE-2026-2004/ Types: Vendor Advisory
  • New CVE Received by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

    Feb. 12, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-1287
    Added Reference https://www.postgresql.org/support/security/CVE-2026-2004/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.