CVE-2026-16239 is a vulnerability in PostgreSQL
Published on August 13, 2026
PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code
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.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Weakness Type
What is an Object Type Confusion Vulnerability?
The program allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.
CVE-2026-16239 has been classified to as an Object Type Confusion vulnerability or weakness.
Products Associated with CVE-2026-16239
Want to know whenever a new CVE is published for PostgreSQL? stack.watch will email you.