Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2026-2004cvecve-2026-2004
Published: Thu Feb 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 08:45:57 UTC

Technical Analysis

CVE-2026-2004 is a vulnerability in the PostgreSQL intarray extension's selectivity estimator function caused by improper validation of the specified input type. This flaw allows an attacker who can create database objects to execute arbitrary code on the host operating system with the same privileges as the PostgreSQL server process. The vulnerability affects multiple major PostgreSQL versions before 18.2, 17.8, 16.12, 15.16, and 14.21, indicating a broad impact across many deployments. The root cause is the failure to validate input types correctly, which can be exploited to inject malicious code during the execution of the selectivity estimator. The CVSS 3.1 score of 8.8 reflects a high-severity issue with network attack vector, low attack complexity, requiring privileges but no user interaction, and full impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the vulnerability presents a critical risk to PostgreSQL users, especially those with less restrictive database permissions. The flaw underscores the importance of input validation in database extensions and the risks posed by elevated privileges within database environments.

Potential Impact

The vulnerability allows attackers with object creation privileges to execute arbitrary code as the operating system user running PostgreSQL, potentially leading to full system compromise. This can result in unauthorized data access, data modification, or destruction, and disruption of database availability. Organizations relying on PostgreSQL for critical applications could face severe operational impacts, including data breaches, service outages, and loss of trust. The ability to execute code at the OS level elevates the threat beyond typical SQL injection or database-level attacks, enabling attackers to pivot to other parts of the network or deploy persistent malware. Given PostgreSQL's widespread use in enterprises, cloud providers, and government systems, the impact could be extensive if exploited. The requirement for object creation privileges limits exploitation to insiders or attackers who have already gained some level of access, but the potential damage remains significant.

Mitigation Recommendations

Organizations should immediately upgrade affected PostgreSQL instances to versions 18.2, 17.8, 16.12, 15.16, or 14.21 or later where the vulnerability is patched. Until patches are applied, restrict database permissions to limit object creation capabilities to trusted users only. Implement strict role-based access controls (RBAC) and audit database activities to detect unauthorized object creation attempts. Disable or remove the intarray extension if it is not required for application functionality. Employ network segmentation and host-based security controls to limit exposure of PostgreSQL servers. Regularly monitor PostgreSQL logs for suspicious activities related to object creation or unusual query patterns. Consider deploying runtime application self-protection (RASP) or database activity monitoring (DAM) solutions to detect exploitation attempts. Finally, maintain an incident response plan tailored to database compromise scenarios to respond swiftly if exploitation is suspected.

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

Threat ID: 698dd351c9e1ff5ad8d5deef

Added to database: 2/12/2026, 1:19:13 PM

Last enriched: 2/27/2026, 8:45:57 AM

Last updated: 3/30/2026, 2:06:33 AM

Views: 373

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.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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