All reports
High

postgresql: PostgreSQL: Arbitrary code execution via type confusion in cursor lifecycle

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-16239

Probability of exploitation in the next 30 days: 0.68%

FIRST EPSS · 2026-11-22

Description

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.

A flaw was found in PostgreSQL. This vulnerability, caused by type confusion in the 'portal'/cursor lifecycle, allows a user to execute arbitrary code as the operating system user running the database. This can occur by re-creating a cursor or other portal with different types. Successful exploitation could lead to a complete compromise of the database system.