CVE-2026-2004

published 12 Feb 2026 · updated 15 Jul 2026

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

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 14.21, 15.16, 16.12 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<14.21, >=15 <15.16, >=16 <16.12, >=17 <17.8, >=18 <18.214.21, 15.16, 16.12, 17.8, 18.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-2004 severity on Zeptric[![CVE-2026-2004](https://zeptric.io/badge/cve/CVE-2026-2004.svg)](https://zeptric.io/cve/CVE-2026-2004)