CVE-2026-16239 json
PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code
published 2mo ago modified 2mo ago also BIT-postgresql-2026-16239 , EUVD-2026-57849
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
Type confusion in PostgreSQL "portal"/cursor lifecycle allows a user to execute arbitrary code as the operating system user running the database, via re-creation of a cursor or other portal with different types. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Patch / fix
- bitnami postgresql 14.24.0, 15.19.0, 16.15.0, 17.11.0, 18.5.0
- n/a PostgreSQL 14.24, 15.19, 16.15, 17.11, 18.6
- postgresql-15 Debian 12 15.19-0+deb12u1
- postgresql-17 Debian 13 17.11-0+deb13u1
- postgresql-18 Debian 14 18.6-1
debian advisories DEBIAN-CVE-2026-16239
- postgresql-14 Ubuntu 22.04 LTS 14.24-0ubuntu0.22.04.1
- postgresql-16 Ubuntu 24.04 LTS 16.15-0ubuntu0.24.04.1
- postgresql-18 Ubuntu 26.04 LTS 18.6-0ubuntu0.26.04.1
ubuntu advisories UBUNTU-CVE-2026-16239
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
- pgaudit RHEL 8 1.4.0-7.module+el8.10.0+22214+9beb89d6
- pg_repack RHEL 8 1.4.6-3.module+el8.9.0+19330+c97ddbdf
- postgresql RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
- postgresql-test RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
- postgresql-pltcl RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
- postgresql-plperl RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
- postgresql-server RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
- postgresql-contrib RHEL 8 12.22-10.module+el8.10.0+24893+321f112b
red hat advisories RHSA-2026:84585RHSA-2026:73912RHSA-2026:72362RHSA-2026:72363RHSA-2026:72361RHSA-2026:72283
- postgresql15 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 15.19-150200.5.62.1
- postgresql15 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Legacy 15 SP7 15.19-150600.16.36.1
- postgresql17 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +2 more 17.11-150600.13.32.1
- postgresql18 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 18.6-150200.5.17.1
- postgresql18 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +2 more 18.6-150600.13.16.1
- postgresql17 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 17.11-150200.5.33.1
- postgresql16 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Server Applications 15 SP7 +2 more 16.15-150600.16.38.1
- postgresql14 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Package Hub 15 SP7 +1 more 14.24-150600.16.36.1
suse advisories SUSE-SU-2026:4018-1SUSE-SU-2026:4017-1SUSE-SU-2026:4016-1SUSE-SU-2026:4015-1SUSE-SU-2026:4014-1SUSE-SU-2026:4013-1
- postgresql15 openSUSE Leap 16.0 15.19-160000.1.1
- postgresql16 openSUSE Leap 16.0 16.15-160000.1.1
- postgresql17 openSUSE Leap 16.0 17.11-160000.1.1
- postgresql14 openSUSE Leap 16.0 14.24-160000.1.1
- postgresql18 openSUSE Leap 16.0 18.6-160000.1.1
- postgresql18-mini openSUSE Leap 16.0 18.6-160000.1.1
- postgresql18 openSUSE Tumbleweed 18.6-1.1
- postgresql14 openSUSE Tumbleweed 14.24-1.1
opensuse advisories openSUSE-SU-2026:21700-1openSUSE-SU-2026:21701-1openSUSE-SU-2026:21702-1openSUSE-SU-2026:21699-1openSUSE-SU-2026:21703-1openSUSE-SU-2026:11565-1
- pgaudit AlmaLinux 8 16.0-1.module_el8.10.0+3798+606ebb9f
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4199+bf03c564
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4286+3c445f53
- pg_repack AlmaLinux 8 1.5.1-1.module_el8.10.0+4125+ceaf7d1b
- postgresql AlmaLinux 8 16.15-1.module_el8.10.0+4286+3c445f53
- postgresql-test AlmaLinux 8 16.15-1.module_el8.10.0+4286+3c445f53
- postgresql-pltcl AlmaLinux 8 16.15-1.module_el8.10.0+4286+3c445f53
- postgresql-plperl AlmaLinux 8 16.15-1.module_el8.10.0+4286+3c445f53
almalinux advisories ALSA-2026:69876ALSA-2026:69914ALSA-2026:69923ALSA-2026:69924ALSA-2026:70186ALSA-2026:69607
- postgresql16 Rocky Linux 10 16.15-1.el10_2
- postgresql Rocky Linux 9 13.23-6.el9_8
- pgaudit Rocky Linux 8 1.4.0-7.module+el8.9.0+1735+a332307b
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.10.0+1862+29bef648
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.10.0+40055+b85d5ce2
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1594+4a6adae9
- pg_repack Rocky Linux 8 1.4.6-3.module+el8.9.0+1603+444d1b54
- postgresql Rocky Linux 8 12.22-10.module+el8.10.0+40333+409bd81c
rocky linux advisories RLSA-2026:70186RLSA-2026:69607RLSA-2026:69924RLSA-2026:69914RLSA-2026:69876RLSA-2026:69923
- postgresql15 Alpine 3.22, Alpine 3.21 15.19-r0
- postgresql16 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 16.15-r0
- postgresql17 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 17.11-r0
- postgresql18 Alpine 3.24, Alpine 3.23 18.5-r0
alpine advisories ALPINE-CVE-2026-16239
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2026-16239 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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-16239 updated cvss 8.8
postgresql: PostgreSQL: Arbitrary code execution via type confusion in cursor lifecycle
-
Red Hat Enterprise Linux 6 postgresql, postgresql-libs, postgresql-test, postgresql-pltcl, postgresql-plperl, postgresql-server, +2 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Ansible Automation Platform 2.2 ansible-automation-platform/bootc-automation-portal-rhel9 1790657374fixed: vendor fix RHSA-2026:73404
-
Red Hat CodeReady Linux Builder EUS (v.9.6) postgresql-test 13.23-1.el9_6.5, postgresql-test-rpm-macros 13.23-1.el9_6.5fixed: vendor fix RHSA-2026:72281
-
Red Hat Enterprise Linux AppStream (v. 8) 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.8-1.module+el8.9.0+19797+c4ce5969, pg_repack 1.5.1-1.module+el8.10.0+22551+c0330dc9, +32 morefixed: vendor fix RHSA-2026:69924
-
Red Hat Enterprise Linux AppStream (v. 9) postgresql 13.23-6.el9_8, postgresql-pltcl 13.23-6.el9_8, postgresql-plperl 13.23-6.el9_8, postgresql-server 13.23-6.el9_8, postgresql-contrib 13.23-6.el9_8, postgresql-upgrade 13.23-6.el9_8, +51 morefixed: vendor fix RHSA-2026:69914
-
Red Hat Enterprise Linux AppStream (v. 10) postgresql 16.15-1.el10_2, postgresql18 18.6-1.el10_2, postgresql16 16.15-1.el10_2, postgresql-test 16.15-1.el10_2, postgresql-pltcl 16.15-1.el10_2, postgresql18-test 18.6-1.el10_2, +12 morefixed: vendor fix RHSA-2026:70186
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-test 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-pltcl 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-plperl 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-server 12.22-1.module+el8.4.0+24949+926f0b6b.6, +5 morefixed: vendor fix RHSA-2026:73912
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, postgresql 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-test 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-pltcl 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-plperl 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, +6 morefixed: vendor fix RHSA-2026:72363
show 14 moreshow fewer
-
Red Hat Enterprise Linux AppStream E4S (v.8.8) 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.8-1.module+el8.8.0+17071+aaaceaa4, postgresql 15.19-1.module+el8.8.0+24926+55068be7, postgresql 12.22-1.module+el8.8.0+24947+3b6f2b4e.6, +19 morefixed: vendor fix RHSA-2026:72362
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) postgresql 13.23-1.el9_2.5, postgresql-pltcl 13.23-1.el9_2.5, postgresql-plperl 13.23-1.el9_2.5, postgresql-server 13.23-1.el9_2.5, postgresql-contrib 13.23-1.el9_2.5, postgresql-upgrade 13.23-1.el9_2.5, +15 morefixed: vendor fix RHSA-2026:70763
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) postgresql 13.23-1.el9_4.4, postgresql-pltcl 13.23-1.el9_4.4, postgresql-plperl 13.23-1.el9_4.4, postgresql-server 13.23-1.el9_4.4, postgresql-contrib 13.23-1.el9_4.4, postgresql-upgrade 13.23-1.el9_4.4, +28 morefixed: vendor fix RHSA-2026:70762
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) postgresql 16.15-1.el10_0, postgresql16 16.15-1.el10_0, postgresql-test 16.15-1.el10_0, postgresql-pltcl 16.15-1.el10_0, postgresql-plperl 16.15-1.el10_0, postgresql-server 16.15-1.el10_0, +4 morefixed: vendor fix RHSA-2026:72282
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) postgresql 13.23-1.el9_6.5, postgresql-pltcl 13.23-1.el9_6.5, postgresql-plperl 13.23-1.el9_6.5, postgresql-server 13.23-1.el9_6.5, postgresql-contrib 13.23-1.el9_6.5, postgresql-upgrade 13.23-1.el9_6.5, +29 morefixed: vendor fix RHSA-2026:69698
-
Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) pgaudit 1.4.0-6.module+el8.4.0+11288+c193d6d7, postgresql 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-test 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-pltcl 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-plperl 12.22-1.module+el8.4.0+24949+926f0b6b.6, postgresql-server 12.22-1.module+el8.4.0+24949+926f0b6b.6, +5 morefixed: vendor fix RHSA-2026:73912
-
Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6) pgaudit 1.4.0-5.module+el8.5.0+11354+78b3c9c5, pg_repack 1.4.6-3.module+el8.5.0+11354+78b3c9c5, postgresql 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-test 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-pltcl 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, postgresql-plperl 12.22-1.module+el8.6.0+24946+5e4e9c0a.6, +6 morefixed: vendor fix RHSA-2026:72363
-
Red Hat Enterprise Linux AppStream TUS (v.8.8) 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.8-1.module+el8.8.0+17071+aaaceaa4, postgresql 15.19-1.module+el8.8.0+24926+55068be7, postgresql 12.22-1.module+el8.8.0+24947+3b6f2b4e.6, +19 morefixed: vendor fix RHSA-2026:72362
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) postgresql-test 13.23-6.el9_8, postgresql-test-rpm-macros 13.23-6.el9_8fixed: vendor fix RHSA-2026:69607
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) postgresql-test-rpm-macros 16.15-1.el10_2, postgresql18-test-rpm-macros 18.6-1.el10_2fixed: vendor fix RHSA-2026:70186
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) postgresql-test-rpm-macros 16.15-1.el10_0fixed: vendor fix RHSA-2026:72282
-
Red Hat Enterprise Linux Server (v. 7 ELS) postgresql 9.2.24-9.el7_9.7, postgresql-libs 9.2.24-9.el7_9.7, postgresql-test 9.2.24-9.el7_9.7, postgresql-pltcl 9.2.24-9.el7_9.7, postgresql-plperl 9.2.24-9.el7_9.7, postgresql-server 9.2.24-9.el7_9.7, +2 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) postgresql-upgrade 9.2.24-9.el7_9.7fixed: vendor fix RHSA-2026:84585
-
Red Hat Update Infrastructure 5 rhui5/rhua-rhel9 1790242004fixed: vendor fix RHSA-2026:71603
-
Red Hat Hardened Images postgresql17, postgresql18 Red Hat Update Infrastructure 5 rhui5/cds-rhel9 1790241954, rhui5/haproxy-rhel9 1790241900, rhui5/installer-rhel9 1790241922, rhui5/cds-kubernetes-rhel9 1790241897not 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
- 2mo ago
Exploit prediction
0.68% chance of exploitation in the next 30 days, higher than 52% 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 |
| 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.24.0 >=15.0.0, <15.19.0 >=16.0.0, <16.15.0 >=17.0.0, <17.11.0 >=18.0.0, <18.5.0 |
14.24.0 15.19.0 16.15.0 17.11.0 18.5.0 |
Affected products
- n/a PostgreSQL
Classification
- Weakness
-
- CWE-843 Access of Resource Using Incompatible Type
- Technology feeds
References
-
postgresql.org
/support/security/CVE-2026-16239/
vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-16239
web
Sources
- CVE List CVE-2026-16239
- NVD CVE-2026-16239
- OSV BIT-postgresql-2026-16239
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.