CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (8.8) in postgresql postgresql. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2026-16238 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-16238?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-16238?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-16238 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| postgresql:postgresql | from 14.0 before 14.24 |
| postgresql:postgresql | from 15.0 before 15.19 |
| postgresql:postgresql | from 16.0 before 16.15 |
| postgresql:postgresql | from 17.0 before 17.11 |
| postgresql:postgresql | from 18.0 before 18.5 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 14 | postgresql-18 | 18.6-1 | DEBIAN-CVE-2026-16238 |
| Ubuntu | 22.04:LTS | postgresql-14 | 14.24-0ubuntu0.22.04.1 | USN-8653-1 |
| Ubuntu | 24.04:LTS | postgresql-16 | 16.15-0ubuntu0.24.04.1 | USN-8653-1 |
| Ubuntu | 26.04:LTS | postgresql-18 | 18.6-0ubuntu0.26.04.1 | UBUNTU-CVE-2026-16238 USN-8653-1 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2026-16238 |
| Red Hat | enterprise_linux:9::appstream | pg_repack, pg_repack-debuginfo, pg_repack-debugsource | 0:1.5.3-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| Red Hat | enterprise_linux:9::appstream | pgaudit, pgaudit-debuginfo, pgaudit-debugsource | 0:18.0-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| Red Hat | enterprise_linux:9::appstream | pgvector, pgvector-debuginfo, pgvector-debugsource | 0:0.8.1-1.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| Red Hat | enterprise_linux:9::appstream | postgis, postgis-docs, postgis-utils and 6 more | 0:3.6.1-4.module+el9.8.0+24879+1364ef12 | RHSA-2026:67848 |
| Red Hat | enterprise_linux:9::appstream | postgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource | 0:3.3.1-1.Final.module+el9.8.0+23739+1c42644c | RHSA-2026:67848 |
| Red Hat | enterprise_linux:9::appstream | postgresql, postgresql-docs, postgresql-test and 25 more | 0:18.6-1.module+el9.8.0+24816+5c11f535 | RHSA-2026:67848 |
| Red Hat | enterprise_linux:10.2 | postgresql18, postgresql18-docs, postgresql18-test and 24 more | 0:18.6-1.el10_2 | RHSA-2026:67280 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 more | postgresql18 | 18.6-150200.5.17.1 | SUSE-SU-2026:4015-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 more | postgresql18 | 18.6-150600.13.16.1 | SUSE-SU-2026:4014-1 |
| SUSE | Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5 | postgresql18 | 18.6-8.17.1 | SUSE-SU-2026:3942-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | postgresql18 | 18.6-160000.1.1 | SUSE-SU-2026:23577-1 |
| openSUSE | Leap 16.0 | postgresql18, postgresql18-mini | 18.6-160000.1.1 | openSUSE-SU-2026:21703-1 |
| openSUSE | Tumbleweed | postgresql18 | 18.6-1.1 | openSUSE-SU-2026:11565-1 |
| AlmaLinux | 9 | pg_repack | 1.5.3-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | pgaudit | 18.0-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | pgvector | 0.8.1-1.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | postgis, postgis-docs, postgis-utils and 2 more | 3.6.1-4.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 9 | postgres-decoderbufs | 3.3.1-1.Final.module_el9.8.0+234+5456f35d | ALSA-2026:67848 |
| AlmaLinux | 9 | postgresql, postgresql-docs, postgresql-test and 12 more | 18.6-1.module_el9.8.0+310+22372bcc | ALSA-2026:67848 |
| AlmaLinux | 10 | postgresql18-test-rpm-macros | 18.6-1.el10_2 | ALSA-2026:67280 |
| Rocky Linux | 9 | pg_repack | 0:1.5.3-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux | 9 | pg_repack | 0:1.5.3-1.module+el9.8.0+40213+f1e225a4 | RLSA-2026:67848 |
| Rocky Linux | 9 | pgaudit | 0:18.0-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux | 9 | pgaudit | 0:18.0-1.module+el9.8.0+40213+f1e225a4 | RLSA-2026:67848 |
| Rocky Linux | 9 | pgvector | 0:0.8.1-1.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux | 9 | pgvector | 0:0.8.1-1.module+el9.8.0+40213+f1e225a4 | RLSA-2026:67848 |
| Rocky Linux | 9 | postgres-decoderbufs | 0:3.3.1-1.Final.module+el9.8.0+40158+490b3c67 | RLSA-2026:67848 |
| Rocky Linux | 9 | postgres-decoderbufs | 0:3.3.1-1.Final.module+el9.8.0+40213+f1e225a4 | RLSA-2026:67848 |
| Rocky Linux | 10 | postgresql18 | 0:18.6-1.el10_2 | RLSA-2026:67280 |
| Alpine | v3.21, v3.22 | postgresql15 | 15.19-r0 | ALPINE-CVE-2026-16238 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | postgresql16 | 16.15-r0 | ALPINE-CVE-2026-16238 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | postgresql17 | 17.11-r0 | ALPINE-CVE-2026-16238 |
| Alpine | v3.23, v3.24 | postgresql18 | 18.5-r0 | ALPINE-CVE-2026-16238 |
| Alpaquita | 25 | postgresql17 | 17.11-r0 | BELL-CVE-2026-16238 |
| Alpaquita | stream | postgresql18 | 18.6-r0 | BELL-CVE-2026-16238 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Important.
A type confusion flaw in PostgreSQL’s pg_restore_attribute_stats() function allows an authenticated user with object-creation privileges to achieve arbitrary code execution under the database server process (postgres) via crafted range and multirange values.
Note: Red Hat Enterprise Linux 9.6 and earlier releases do not ship the vulnerable PostgreSQL major version (18.x) and are therefore not affected.
To mitigate this issue, restrict the ability to create database objects and perform database restorations to only highly trusted administrative users. This operational control limits the attack surface by ensuring that only authorized personnel can introduce potentially malicious objects into the database environment. Carefully manage user privileges to enforce this restriction.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | postgresql18-0:18.6-1.el10_2 | Fixed 2026-09-14 | RHSA-2026:67280 |
| Red Hat Enterprise Linux 9 | postgresql:18-9080020260914093252.rhel9 | Fixed 2026-09-16 | RHSA-2026:67848 |
| Red Hat Enterprise Linux 10 | postgresql16 | Not affected | |
| Red Hat Enterprise Linux 6 | postgresql | Not affected | |
| Red Hat Enterprise Linux 7 | postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:12/postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:15/postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:16/postgresql | Not affected | |
| Red Hat Enterprise Linux 9 | postgresql | Not affected | |
| Red Hat Enterprise Linux 9 | postgresql:15/postgresql | Not affected | |
| Red Hat Enterprise Linux 9 | postgresql:16/postgresql | Not affected | |
| Red Hat Hardened Images | postgresql17 | Not affected | |
| Red Hat Hardened Images | postgresql18 | Not affected | |
| Self-service automation portal 2 | ansible-automation-platform/bootc-automation-portal-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-16238.