Skip to main content
EPSS 1.2%top 34%

PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code (CVE-2026-2004)

0
High
Published: 02/16/2026 (02/16/2026, 16:03:32 UTC)
Source: GCVE Database
Product: postgresql

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.

Affected software

redhat/postgresql
pkg:rpm/redhat/postgresql
Affected versions
<13.24 >=13.23

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 15:57:52 UTC

Technical Analysis

The vulnerability CVE-2026-2004 in PostgreSQL arises from improper validation of the type of input in the intarray extension's selectivity estimator function. This flaw enables an attacker who can create objects in the database to execute arbitrary code as the OS user running the database process. The issue affects PostgreSQL versions before 18.2, 17.8, 16.12, 15.16, and 14.21. Red Hat Product Security has published advisories and released updated packages that fix this vulnerability along with related issues. The CVSS v3.1 base score is 8.8, indicating a high severity with network attack vector, low attack complexity, requiring privileges, no user interaction, and high impact on confidentiality, integrity, and availability.

Potential Impact

Successful exploitation allows an attacker with the ability to create database objects to execute arbitrary code with the privileges of the operating system user running the PostgreSQL server. This can lead to full compromise of the database server and potentially the host system. The vulnerability impacts confidentiality, integrity, and availability of the affected systems.

Mitigation Recommendations

Red Hat has released security updates that fix this vulnerability in PostgreSQL versions 18.2, 17.8, 16.12, 15.16, and 14.21 and later. Users should apply these official patches as soon as possible. For Red Hat Enterprise Linux users, updated packages are available as part of Extended Update Support 10.0 and other supported releases. Patch status is confirmed by the vendor advisory. No alternative mitigations are stated; applying the vendor-provided updates is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:4524
Cve Count
3
Additional Cves
["CVE-2026-2005","CVE-2026-2006"]

Threat ID: 6a3da1c24853345fc181e30f

Added to database: 06/25/2026, 21:46:42 UTC

Last enriched: 07/15/2026, 15:57:52 UTC

Last updated: 09/10/2026, 20:20:21 UTC

Views: 177

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses