Vulnerability · Published Feb 12, 2026 · Assigned by PostgreSQL

CVE-2026-2004PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code

High 8.8

In plain English

A high-severity security flaw in PostgreSQL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)1.3%top 28.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.5.1-1.module_el8.10.0+3930+ecf33554ALSA-2026:4063
AlmaLinux:8pg_repack1.4.6-3.module_el8.9.0+3704+f1f917ceALSA-2026:4064
AlmaLinux:8pg_repack1.5.1-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2026:4024
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2026:4024
AlmaLinux:8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2026:4059
AlmaLinux:9pg_repack1.5.1-1.module_el9.6.0+146+c54fdecaALSA-2026:4110
AlmaLinux:9pg_repack1.4.8-2.module_el9.5.0+119+18833d03ALSA-2026:3896
AlmaLinux:8pgaudit1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1ALSA-2026:4064
AlmaLinux:8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2026:4063
AlmaLinux:8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2026:4059
AlmaLinux:8pgaudit1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1ALSA-2026:4064
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2026:4024
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2026:4024
AlmaLinux:9pgaudit1.7.0-1.module_el9.3.0+52+21733919ALSA-2026:3896
AlmaLinux:9pgaudit16.0-1.module_el9.4.0+66+eb9878bcALSA-2026:4110
AlmaLinux:9pgvector0.6.2-2.module_el9.6.0+167+4e561146ALSA-2026:4110
AlmaLinux:9postgis3.5.3-3.module_el9.7.0+187+2286ff0aALSA-2026:4110
AlmaLinux:9postgis-client3.5.3-3.module_el9.7.0+187+2286ff0aALSA-2026:4110
AlmaLinux:9postgis-docs3.5.3-3.module_el9.7.0+187+2286ff0aALSA-2026:4110
AlmaLinux:9postgis-upgrade3.5.3-3.module_el9.7.0+187+2286ff0aALSA-2026:4110
AlmaLinux:9postgis-utils3.5.3-3.module_el9.7.0+187+2286ff0aALSA-2026:4110
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.9.0+3704+f1f917ceALSA-2026:4064
AlmaLinux:8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2026:4059
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2026:4024
AlmaLinux:8postgres-decoderbufs2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2026:4063
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2026:4024
AlmaLinux:9postgres-decoderbufs1.9.7-1.Final.module_el9.3.0+52+21733919ALSA-2026:3896
AlmaLinux:9postgres-decoderbufs2.4.0-1.Final.module_el9.4.0+66+eb9878bcALSA-2026:4110
AlmaLinux:10postgresql16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:9postgresql15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-contrib16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-contrib16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-contrib13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-contrib15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-contrib12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:9postgresql-contrib16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:9postgresql-contrib15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-contrib13.23-2.el9_7ALSA-2026:3730
AlmaLinux:10postgresql-docs16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-docs15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-docs16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-docs13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-docs12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:9postgresql-docs15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-docs13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-docs16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-plperl16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-plperl15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-plperl16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-plperl13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-plperl12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:9postgresql-plperl13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-plperl15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-plperl16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-plpython316.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-plpython315.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-plpython313.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-plpython312.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-plpython316.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:9postgresql-plpython313.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-plpython315.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-plpython316.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-pltcl16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-pltcl13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-pltcl12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-pltcl16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-pltcl15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:9postgresql-pltcl15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-pltcl16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:9postgresql-pltcl13.23-2.el9_7ALSA-2026:3730
AlmaLinux:10postgresql-private-devel16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-private-devel16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-private-devel15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:9postgresql-private-devel15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-private-devel13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-private-devel16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-private-libs16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-private-libs15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-private-libs16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:9postgresql-private-libs15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-private-libs13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-private-libs16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-server16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-server13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-server16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-server12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-server15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:9postgresql-server13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-server15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-server16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-server-devel16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-server-devel13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-server-devel12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-server-devel15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-server-devel16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:9postgresql-server-devel13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-server-devel15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-server-devel16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-static16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-static13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-static15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-static12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-static16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:9postgresql-static15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-static13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-static16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-test16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-test15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-test12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-test16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-test13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:9postgresql-test13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-test16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:9postgresql-test15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:10postgresql-test-rpm-macros16.13-1.el10_1ALSA-2026:3887
AlmaLinux:10postgresql-test-rpm-macros16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-test-rpm-macros15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-test-rpm-macros12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-test-rpm-macros16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-test-rpm-macros13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:9postgresql-test-rpm-macros16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:9postgresql-test-rpm-macros15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-test-rpm-macros13.23-2.el9_7ALSA-2026:3730
AlmaLinux:10postgresql-upgrade16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-upgrade16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:8postgresql-upgrade13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-upgrade15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-upgrade12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:9postgresql-upgrade15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-upgrade13.23-2.el9_7ALSA-2026:3730
AlmaLinux:9postgresql-upgrade16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:10postgresql-upgrade-devel16.13-1.el10_2ALSA-2026:19010
AlmaLinux:8postgresql-upgrade-devel12.22-6.module_el8.10.0+4123+1638d348ALSA-2026:4064
AlmaLinux:8postgresql-upgrade-devel15.17-1.module_el8.10.0+4127+dc6e3c5cALSA-2026:4059
AlmaLinux:8postgresql-upgrade-devel13.23-2.module_el8.10.0+4124+c9cb0592ALSA-2026:4024
AlmaLinux:8postgresql-upgrade-devel16.13-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:4063
AlmaLinux:9postgresql-upgrade-devel16.13-1.module_el9.7.0+213+65e1da69ALSA-2026:4110
AlmaLinux:9postgresql-upgrade-devel15.17-1.module_el9.7.0+214+91f631dfALSA-2026:3896
AlmaLinux:9postgresql-upgrade-devel13.23-2.el9_7ALSA-2026:3730
AlmaLinux:10postgresql1818.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-contrib18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-docs18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-plperl18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-plpython318.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-private-devel18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-private-libs18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-server18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-server-devel18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-static18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-test18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-test-rpm-macros18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-upgrade18.3-1.el10_2ALSA-2026:19009
AlmaLinux:10postgresql18-upgrade-devel18.3-1.el10_2ALSA-2026:19009
Alpine:v3.20postgresql1515.16-r0ALPINE-CVE-2026-2004
Alpine:v3.22postgresql1515.16-r0ALPINE-CVE-2026-2004
Alpine:v3.20postgresql1616.12-r0ALPINE-CVE-2026-2004
Alpine:v3.21postgresql1616.12-r0ALPINE-CVE-2026-2004
Alpine:v3.22postgresql1616.12-r0ALPINE-CVE-2026-2004
Alpine:v3.23postgresql1616.12-r0ALPINE-CVE-2026-2004
Alpine:v3.24postgresql1616.12-r0ALPINE-CVE-2026-2004
Alpine:v3.21postgresql1717.8-r0ALPINE-CVE-2026-2004
Alpine:v3.22postgresql1717.8-r0ALPINE-CVE-2026-2004
Alpine:v3.23postgresql1717.8-r0ALPINE-CVE-2026-2004
Alpine:v3.24postgresql1717.8-r0ALPINE-CVE-2026-2004
Alpine:v3.23postgresql1818.2-r0ALPINE-CVE-2026-2004
Alpine:v3.24postgresql1818.2-r0ALPINE-CVE-2026-2004
Debian:12postgresql-1515.16-0+deb12u1DEBIAN-CVE-2026-2004
Debian:12postgresql-1515.16-0+deb12u1DSA-6132-1
Debian:13postgresql-1717.8-0+deb13u1DEBIAN-CVE-2026-2004
Debian:13postgresql-1717.8-0+deb13u1DSA-6133-1
Debian:14postgresql-1818.2-1DEBIAN-CVE-2026-2004
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:4064
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.9.0+1594+4a6adae9RLSA-2026:4064
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.10.0+40055+b85d5ce2RLSA-2026:4064
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.9.0+1594+4a6adae9RLSA-2026:4024
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2026:4059
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2026:4059
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2026:4059
Rocky Linux:8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2026:4059
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.10.0+40055+b85d5ce2RLSA-2026:4024
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:4024
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2026:4024
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.10.0+1862+29bef648RLSA-2026:4064
Rocky Linux:8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2026:4063
Rocky Linux:8pg_repack0:1.5.1-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:4063
Rocky Linux:9pg_repack0:1.5.1-1.module+el9.7.0+40060+39463e08RLSA-2026:4110
Rocky Linux:9pg_repack0:1.4.8-2.module+el9.7.0+40011+28af63c9RLSA-2026:3896
Rocky Linux:9pg_repack0:1.5.1-1.module+el9.7.0+40012+a654bbaaRLSA-2026:4110
Rocky Linux:8pgaudit0:1.4.0-7.module+el8.9.0+1735+a332307bRLSA-2026:4064
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.10.0+40055+b85d5ce2RLSA-2026:4024
Rocky Linux:8pgaudit0:16.0-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:4063
Rocky Linux:8pgaudit0:16.0-1.module+el8.10.0+1622+bd25b19cRLSA-2026:4063
Rocky Linux:8pgaudit0:16.0-1.module+el8.10.0+1858+fcc46a79RLSA-2026:4063

Affected products (as reported)

VendorProductVersions
n/a PostgreSQL 18 – before 18.217 – before 17.816 – before 16.1215 – before 15.160 – before 14.21

Weakness: CWE-1287 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References