CVE-2026-2004: PostgreSQL · Improper Validation of Specified Type of Input
Affects PostgreSQLSource CVE Database V5
Not known to be exploited · CVSS 8.8 High · fixed in 18.2 : patch PostgreSQL soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 1.3% chance of exploitation in 30 days – higher than 71% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 18.2, 17.8, 16.12 +2
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PostgreSQL | Affected
| Fixed in
|
AI-suggested
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.
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.
References
- postgresql.org/support/security/CVE-2026-2004/ (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-2004 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2439325 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-2004.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4441 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:3887 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:19010 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:19009 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4064 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4024 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4059 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4063 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4506 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4509 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4504 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4505 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4516 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4075 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4074 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4515 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4518 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4254 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4475 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4548 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4544 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4524 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4546 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4547 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4528 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:3896 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4110 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:3730 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:8756 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:4943 (opens in a new tab)