CVE-2026-2004
NVDCVSS scored by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Vulnerability Summary
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 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- PostgreSQL >= 14.0 and < 14.21
- PostgreSQL >= 15.0 and < 15.16
- PostgreSQL >= 16.0 and < 16.12
- PostgreSQL >= 17.0 and < 17.8
- PostgreSQL >= 18.0 and < 18.2
- PostgreSQL >= 18 and < 18.2
- PostgreSQL >= 17 and < 17.8
- PostgreSQL >= 16 and < 16.12
- PostgreSQL >= 15 and < 15.16
- PostgreSQL < 14.21
- PostgreSQL 14.21
- PostgreSQL 15.16
- PostgreSQL 16.12
- PostgreSQL 17.8
- PostgreSQL 18.2
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run PostgreSQL and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Feb 12, 2026Published
- Jun 30, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new PostgreSQL CVEsYou are reading CVE-2026-2004. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://www.postgresql.org/support/security/CVE-2026-2004/
- Referencehttps://access.redhat.com/errata/RHSA-2026:19009
- Referencehttps://access.redhat.com/errata/RHSA-2026:19010
- Referencehttps://access.redhat.com/errata/RHSA-2026:3730
- Referencehttps://access.redhat.com/errata/RHSA-2026:3887
- Referencehttps://access.redhat.com/errata/RHSA-2026:3896
- Referencehttps://access.redhat.com/errata/RHSA-2026:4024
- Referencehttps://access.redhat.com/errata/RHSA-2026:4059
- Referencehttps://access.redhat.com/errata/RHSA-2026:4063
- Referencehttps://access.redhat.com/errata/RHSA-2026:4064
- Referencehttps://access.redhat.com/errata/RHSA-2026:4074
- Referencehttps://access.redhat.com/errata/RHSA-2026:4075
- Referencehttps://access.redhat.com/errata/RHSA-2026:4110
- Referencehttps://access.redhat.com/errata/RHSA-2026:4254
- Referencehttps://access.redhat.com/errata/RHSA-2026:4441
- Referencehttps://access.redhat.com/errata/RHSA-2026:4475
- Referencehttps://access.redhat.com/errata/RHSA-2026:4504
- Referencehttps://access.redhat.com/errata/RHSA-2026:4505
- Referencehttps://access.redhat.com/errata/RHSA-2026:4506
- Referencehttps://access.redhat.com/errata/RHSA-2026:4509
- Referencehttps://access.redhat.com/errata/RHSA-2026:4515
- Referencehttps://access.redhat.com/errata/RHSA-2026:4516
- Referencehttps://access.redhat.com/errata/RHSA-2026:4518
- Referencehttps://access.redhat.com/errata/RHSA-2026:4524
- Referencehttps://access.redhat.com/errata/RHSA-2026:4528
- Referencehttps://access.redhat.com/errata/RHSA-2026:4544
- Referencehttps://access.redhat.com/errata/RHSA-2026:4546
- Referencehttps://access.redhat.com/errata/RHSA-2026:4547
- Referencehttps://access.redhat.com/errata/RHSA-2026:4548
- Referencehttps://access.redhat.com/errata/RHSA-2026:4943
- Referencehttps://access.redhat.com/errata/RHSA-2026:8756
- Vendor Advisoryhttps://access.redhat.com/security/cve/CVE-2026-2004
- Issue Trackinghttps://bugzilla.redhat.com/show_bug.cgi?id=2439325
- Referencehttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2004.json
Data last checked: Dec 3, 2026 01:10 UTC