| Name | CVE-2026-2004 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6132-1, DSA-6133-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
| bullseye (security) | 13.23-0+deb11u1 | vulnerable | |
| postgresql-15 (PTS) | bookworm | 15.15-0+deb12u1 | vulnerable |
| bookworm (security) | 15.16-0+deb12u1 | fixed | |
| postgresql-17 (PTS) | trixie | 17.7-0+deb13u1 | vulnerable |
| trixie (security) | 17.8-0+deb13u1 | fixed | |
| postgresql-18 (PTS) | forky | 18.1-2 | vulnerable |
| sid | 18.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| postgresql-13 | source | (unstable) | (unfixed) | |||
| postgresql-15 | source | bookworm | 15.16-0+deb12u1 | DSA-6132-1 | ||
| postgresql-15 | source | (unstable) | (unfixed) | |||
| postgresql-17 | source | trixie | 17.8-0+deb13u1 | DSA-6133-1 | ||
| postgresql-17 | source | (unstable) | (unfixed) | |||
| postgresql-18 | source | (unstable) | 18.2-1 |
https://www.postgresql.org/about/news/postgresql-182-178-1612-1516-and-1421-released-3235/
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=66ddac6982c6dc0369dc7b2d251f4d210d704a57 (REL_18_2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=b69af3dda26104b54d4e728c6946edcc79a8ac61 (REL_18_2)