Skip to content
Fencer Intel
high 8.8

CVE-2026-2004 json

PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code

published 2026-02-12 8 mo ago modified 2026-09-08 2 mo ago also BIT-postgresql-2026-2004 , EUVD-2026-6183 , JLSEC-2026-54

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 71%
public exploits
0
none known

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.

Patch / fix

  • bitnami postgresql 14.21.0, 15.16.0, 16.12.0, 17.8.0, 18.2.0
  • julia LibPQ_jll 16.13.0+0
  • n/a PostgreSQL 14.21, 15.16, 16.12, 17.8, 18.2
  • Red Hat Red Hat Enterprise Linux 10 0:16.13-1.el10_1, 0:16.13-1.el10_2, 0:18.3-1.el10_2
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 0:16.13-1.el10_0
  • Red Hat Red Hat Enterprise Linux 8 8100020260227180702.489197e6, 8100020260227221316.489197e6, 8100020260227221401.489197e6, 8100020260302082007.489197e6
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support 8020020260309120440.4cda2c84
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020260305144728.522a0ee4, 8040020260306101701.522a0ee4
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On 8040020260305144728.522a0ee4, 8040020260306101701.522a0ee4
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 8060020260306113941.ad008a3a, 8060020260309111524.ad008a3a
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service 8060020260306113941.ad008a3a, 8060020260309111524.ad008a3a
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 8060020260306113941.ad008a3a, 8060020260309111524.ad008a3a
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service 8080020260302123049.63b34585, 8080020260302123717.63b34585
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions 8080020260302123049.63b34585, 8080020260302123717.63b34585, 8080020260306092921.63b34585
  • Red Hat Red Hat Enterprise Linux 9 0:13.23-2.el9_7, 9070020260227094950.rhel9, 9070020260227095951.rhel9
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 0:13.23-1.el9_0.1
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:13.23-1.el9_2.1, 9020020260309133405.rhel9
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:13.23-1.el9_4.1, 9040020260305163703.rhel9, 9040020260306102041.rhel9
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 0:13.23-1.el9_6.1, 9060020260305153549.rhel9, 9060020260309125703.rhel9
  • Red Hat Red Hat Hardened Images 18.3-1.2.hum1
  • Red Hat Red Hat Update Infrastructure 5 1773670137
  • postgresql-15 Debian 12 15.16-0+deb12u1
  • postgresql-17 Debian 13 17.8-0+deb13u1
  • postgresql-18 Debian 14 18.2-1

debian advisories DEBIAN-CVE-2026-2004

  • postgresql-14 Ubuntu 22.04 LTS 14.22-0ubuntu0.22.04.1
  • postgresql-16 Ubuntu 24.04 LTS 16.13-0ubuntu0.24.04.1
  • postgresql-17 Ubuntu 25.10 17.9-0ubuntu0.25.10.1

ubuntu advisories UBUNTU-CVE-2026-2004

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql18 RHEL 10.2 18.3-1.el10_2
  • postgresql18-test RHEL 10.2 18.3-1.el10_2
  • postgresql18-plperl RHEL 10.2 18.3-1.el10_2
  • postgresql18-server RHEL 10.2 18.3-1.el10_2
  • postgresql18-contrib RHEL 10.2 18.3-1.el10_2
  • postgresql18-upgrade RHEL 10.2 18.3-1.el10_2
  • postgresql18-plpython3 RHEL 10.2 18.3-1.el10_2
  • postgresql18-private-libs RHEL 10.2 18.3-1.el10_2

red hat advisories RHSA-2026:19009RHSA-2026:19010RHSA-2026:8756RHSA-2026:4548RHSA-2026:4546RHSA-2026:4547

  • postgresql16 SLES for SAP applications 16.0, SLES 16.0 16.13-160000.1.1
  • postgresql18 SLES for SAP applications 16.0, SLES 16.0 18.3-160000.1.1
  • postgresql17 SLES for SAP applications 16.0, SLES 16.0 17.9-160000.1.1
  • postgresql17 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +3 more 17.9-150600.13.24.1
  • postgresql16 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +3 more 16.13-150600.16.30.1
  • postgresql18 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +3 more 18.3-150600.13.8.1
  • postgresql14 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Package Hub 15 SP7 +2 more 14.22-150600.16.28.1
  • postgresql15 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Legacy 15 SP7 +1 more 15.17-150600.16.28.1

suse advisories SUSE-SU-2026:20983-1SUSE-SU-2026:20921-1SUSE-SU-2026:20906-1SUSE-SU-2026:0883-1SUSE-SU-2026:0882-1SUSE-SU-2026:0881-1

  • postgresql16 openSUSE Leap 16.0 16.13-160000.1.1
  • postgresql18 openSUSE Leap 16.0 18.3-160000.1.1
  • postgresql18-mini openSUSE Leap 16.0 18.3-160000.1.1
  • postgresql17 openSUSE Leap 16.0 17.9-160000.1.1
  • postgresql15 openSUSE Leap 16.0 15.16-160000.1.1
  • postgresql14 openSUSE Leap 16.0 14.21-160000.1.1
  • postgresql18 openSUSE Tumbleweed 18.2-1.1
  • postgresql14 openSUSE Tumbleweed 14.21-1.1

opensuse advisories openSUSE-SU-2026:20447-1openSUSE-SU-2026:20408-1openSUSE-SU-2026:20388-1openSUSE-SU-2026:20266-1openSUSE-SU-2026:20265-1openSUSE-SU-2026:10197-1

  • postgresql18 AlmaLinux 10 18.3-1.el10_2
  • postgresql18-test AlmaLinux 10 18.3-1.el10_2
  • postgresql18-plperl AlmaLinux 10 18.3-1.el10_2
  • postgresql18-server AlmaLinux 10 18.3-1.el10_2
  • postgresql18-contrib AlmaLinux 10 18.3-1.el10_2
  • postgresql18-upgrade AlmaLinux 10 18.3-1.el10_2
  • postgresql18-plpython3 AlmaLinux 10 18.3-1.el10_2
  • postgresql18-private-libs AlmaLinux 10 18.3-1.el10_2

almalinux advisories ALSA-2026:19009ALSA-2026:19010ALSA-2026:4024ALSA-2026:4059ALSA-2026:4063ALSA-2026:4064

  • postgresql18 Rocky Linux 10 18.3-1.el10
  • postgresql16 Rocky Linux 10 16.13-1.el10_1
  • pgaudit Rocky Linux 9 16.0-1.module+el9.7.0+40060+39463e08
  • pgaudit Rocky Linux 9 16.0-1.module+el9.7.0+40012+a654bbaa
  • postgis Rocky Linux 9 3.5.3-3.module+el9.7.0+40012+a654bbaa
  • pgvector Rocky Linux 9 0.6.2-2.module+el9.7.0+40060+39463e08
  • pgvector Rocky Linux 9 0.6.2-2.module+el9.7.0+40012+a654bbaa
  • pg_repack Rocky Linux 9 1.5.1-1.module+el9.7.0+40012+a654bbaa

rocky linux advisories RLSA-2026:19009RLSA-2026:19010RLSA-2026:4110RLSA-2026:4063RLSA-2026:4024RLSA-2026:4059

  • postgresql15 Alpine 3.22, Alpine 3.20 15.16-r0
  • postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 16.12-r0
  • postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.8-r0
  • postgresql18 Alpine 3.24, Alpine 3.23 18.2-r0

alpine advisories ALPINE-CVE-2026-2004

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • postgresql Azure Linux 3.0 16.12-1
  • postgresql CBL-Mariner 2.0 14.21-1

azure linux advisories AZL-77423AZL-77583

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-2004 updated cvss 8.8

postgresql: PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code

  • Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 more Red Hat Enterprise Linux 7 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +3 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 9 postgresql, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, postgresql-contrib, +4 more
    affected: workaround, no fix available
  • Red Hat CodeReady Linux Builder EUS (v.9.4) postgresql-test 13.23-1.el9_4.1
    fixed: vendor fix RHSA-2026:4524
  • Red Hat CodeReady Linux Builder EUS (v.9.6) postgresql-test 13.23-1.el9_6.1, postgresql-test-rpm-macros 13.23-1.el9_6.1
    fixed: vendor fix RHSA-2026:4528
  • Red Hat Enterprise Linux AppStream (v. 8) pgaudit 1.5.0-1.module+el8.9.0+20664+9c30cf7f, pgaudit 1.7.0-1.module+el8.9.0+19797+c4ce5969, pgaudit 16.0-1.module+el8.10.0+20413+d8116364, pgaudit 1.4.0-7.module+el8.10.0+22214+9beb89d6, pg_repack 1.4.6-3.module+el8.9.0+19330+c97ddbdf, pg_repack 1.4.6-3.module+el8.9.0+20664+9c30cf7f, +44 more
    fixed: vendor fix RHSA-2026:4064
  • Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.23-2.el9_7, postgresql-pltcl 13.23-2.el9_7, postgresql-plperl 13.23-2.el9_7, postgresql-server 13.23-2.el9_7, postgresql-contrib 13.23-2.el9_7, postgresql-upgrade 13.23-2.el9_7, +33 more
    fixed: vendor fix RHSA-2026:3896
  • Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.13-1.el10_1, postgresql 16.13-1.el10_2, postgresql18 18.3-1.el10_2, postgresql16 16.13-1.el10_1, postgresql16 16.13-1.el10_2, postgresql-test 16.13-1.el10_1, +22 more
    fixed: vendor fix RHSA-2026:3887
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) pgaudit 1.4.0-4.module+el8.2.0+9043+1dbb5661, postgresql 12.22-1.module+el8.2.0+24074+a7f2beb9.3, postgresql-test 12.22-1.module+el8.2.0+24074+a7f2beb9.3, postgresql-pltcl 12.22-1.module+el8.2.0+24074+a7f2beb9.3, postgresql-plperl 12.22-1.module+el8.2.0+24074+a7f2beb9.3, postgresql-server 12.22-1.module+el8.2.0+24074+a7f2beb9.3, +5 more
    fixed: vendor fix RHSA-2026:4506
show 17 more
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24066+665c8b71.3, postgresql 13.23-1.module+el8.4.0+24060+20ac1283.1, postgresql-test 12.22-1.module+el8.4.0+24066+665c8b71.3, postgresql-test 13.23-1.module+el8.4.0+24060+20ac1283.1, +16 more
    fixed: vendor fix RHSA-2026:4509
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24068+6365202e.3, postgresql 13.23-1.module+el8.6.0+24072+5a7aa9c7.2, +18 more Red Hat Enterprise Linux AppStream E4S (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24068+6365202e.3, postgresql 13.23-1.module+el8.6.0+24072+5a7aa9c7.2, +18 more
    fixed: vendor fix RHSA-2026:4505
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pgaudit 1.7.0-1.module+el8.8.0+17071+aaaceaa4, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, pg_repack 1.4.8-1.module+el8.8.0+17071+aaaceaa4, +31 more
    fixed: vendor fix RHSA-2026:4075
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) postgresql 13.23-1.el9_0.1, postgresql-pltcl 13.23-1.el9_0.1, postgresql-plperl 13.23-1.el9_0.1, postgresql-server 13.23-1.el9_0.1, postgresql-contrib 13.23-1.el9_0.1, postgresql-upgrade 13.23-1.el9_0.1, +2 more
    fixed: vendor fix RHSA-2026:4518
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.23-1.el9_2.1, postgresql-pltcl 13.23-1.el9_2.1, postgresql-plperl 13.23-1.el9_2.1, postgresql-server 13.23-1.el9_2.1, postgresql-contrib 13.23-1.el9_2.1, postgresql-upgrade 13.23-1.el9_2.1, +15 more
    fixed: vendor fix RHSA-2026:4254
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) postgresql 16.13-1.el10_0, postgresql16 16.13-1.el10_0, postgresql-test 16.13-1.el10_0, postgresql-pltcl 16.13-1.el10_0, postgresql-plperl 16.13-1.el10_0, postgresql-server 16.13-1.el10_0, +4 more
    fixed: vendor fix RHSA-2026:4441
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) postgresql 13.23-1.el9_4.1, postgresql-pltcl 13.23-1.el9_4.1, postgresql-plperl 13.23-1.el9_4.1, postgresql-server 13.23-1.el9_4.1, postgresql-contrib 13.23-1.el9_4.1, postgresql-upgrade 13.23-1.el9_4.1, +28 more
    fixed: vendor fix RHSA-2026:4548
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) postgresql 13.23-1.el9_6.1, postgresql-pltcl 13.23-1.el9_6.1, postgresql-plperl 13.23-1.el9_6.1, postgresql-server 13.23-1.el9_6.1, postgresql-contrib 13.23-1.el9_6.1, postgresql-upgrade 13.23-1.el9_6.1, +29 more
    fixed: vendor fix RHSA-2026:4546
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24066+665c8b71.3, postgresql 13.23-1.module+el8.4.0+24060+20ac1283.1, postgresql-test 12.22-1.module+el8.4.0+24066+665c8b71.3, postgresql-test 13.23-1.module+el8.4.0+24060+20ac1283.1, +16 more
    fixed: vendor fix RHSA-2026:4509
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.6.0+24068+6365202e.3, postgresql 13.23-1.module+el8.6.0+24072+5a7aa9c7.2, +18 more
    fixed: vendor fix RHSA-2026:4505
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) pgaudit 1.5.0-1.module+el8.4.0+8873+b821c30a, pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11357+bcc62552, postgresql 12.22-1.module+el8.8.0+24047+e7ffc146.3, postgresql 13.23-1.module+el8.8.0+24046+5b274db5.1, +18 more
    fixed: vendor fix RHSA-2026:4075
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.23-2.el9_7, postgresql-test-rpm-macros 13.23-2.el9_7
    fixed: vendor fix RHSA-2026:3730
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.13-1.el10_1, postgresql-test-rpm-macros 16.13-1.el10_2, postgresql18-test-rpm-macros 18.3-1.el10_2
    fixed: vendor fix RHSA-2026:3887
  • Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) postgresql-test-rpm-macros 16.13-1.el10_0
    fixed: vendor fix RHSA-2026:4441
  • Red Hat Hardened Images postgresql18 18.3-1.2.hum1
    fixed: vendor fix RHSA-2026:8756
  • Red Hat Update Infrastructure 5 rhui5 1773670137
    fixed: vendor fix RHSA-2026:4943
  • Red Hat Hardened Images postgresql 18.3-1.2.hum1, postgresql-test 18.3-1.2.hum1, postgresql-plperl 18.3-1.2.hum1, postgresql-server 18.3-1.2.hum1, postgresql-contrib 18.3-1.2.hum1, postgresql-upgrade 18.3-1.2.hum1, +3 more Red Hat Update Infrastructure 5 rhui5 1773668803, rhui5 1773670073, rhui5 1773672059
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
8 mo ago

Exploit prediction

1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami postgresql
<14.21.0
>=15.0.0, <15.16.0
>=16.0.0, <16.12.0
>=17.0.0, <17.8.0
>=18.0.0, <18.2.0
14.21.0
15.16.0
16.12.0
17.8.0
18.2.0
julia LibPQ_jll
>=14.1.0+0, <16.13.0+0
16.13.0+0

Affected products

  • n/a PostgreSQL
  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support
  • Red Hat Red Hat Hardened Images
  • Red Hat Red Hat Update Infrastructure 5
  • Red Hat Red Hat Enterprise Linux 6
  • Red Hat Red Hat Enterprise Linux 7

Classification

Weakness
  • CWE-1287 Improper Validation of Specified Type of Input
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.