CVE-2026-16239

published 13 Aug 2026 · updated 13 Nov 2026

PostgreSQL type confusion in cursor CLOSE + DECLARE 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.24, 15.19, 16.15 and 2 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<14.24, >=15 <15.19, >=16 <16.15, >=17 <17.11, >=18 <18.614.24, 15.19, 16.15, 17.11, 18.6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

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