Skip to main content
EPSS 1.2%top 34%

CVE-2026-2004: Improper Validation of Specified Type of Input in PostgreSQL

0
High
VulnerabilityCVE-2026-2004cvecve-2026-2004
Published: 02/12/2026 (02/12/2026, 13:00:08 UTC)
Source: CVE Database V5
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.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
18171615

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 08:35:21 UTC

Technical Analysis

This vulnerability in PostgreSQL's intarray extension arises from improper validation of the specified input type in the selectivity estimator function. An attacker with the ability to create objects in the database can exploit this flaw to execute arbitrary code as the OS user running the PostgreSQL server. The issue affects multiple major PostgreSQL versions prior to 18.2, 17.8, 16.12, 15.16, and 14.21. Red Hat advisories confirm the existence of this vulnerability and provide security updates to remediate it.

Potential Impact

Successful exploitation allows arbitrary code execution with the privileges of the operating system user running the PostgreSQL database. This can lead to full compromise of the database server and potentially the host system. The CVSS v3.1 score is 8.8 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Security updates fixing this vulnerability have been released by PostgreSQL and are available through Red Hat advisories. Users should apply the official patches to PostgreSQL versions 14.21, 15.16, 16.12, 17.8, and 18.2 or later to remediate this issue. Patch status is confirmed by vendor advisories linked in the references. No additional mitigations are specified beyond applying these updates.

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

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-02-05T18:17:54.681Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-2004","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4441","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3887","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19010","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19009","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4064","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4024","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4059","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4063","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4506","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4509","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4504","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4505","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4516","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4075","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4074","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4515","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4518","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4254","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4475","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4548","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4544","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4524","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4546","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4547","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4528","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3896","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4110","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3730","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8756","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4943","vendor":"Red Hat"}]

Threat ID: 698dd351c9e1ff5ad8d5deef

Added to database: 02/12/2026, 13:19:13 UTC

Last enriched: 07/15/2026, 08:35:21 UTC

Last updated: 09/10/2026, 19:36:53 UTC

Views: 985

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