Type Confusion in PostgreSQL - CVE-2026-16239
Published: August 15, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to type confusion in the portal/cursor lifecycle when re-creating a cursor or other portal with different types. A remote user can re-create a cursor or other portal with different types to execute arbitrary code.
Successful exploitation results in code execution as the operating system user running the database.
Affected software
Debian Linux
postgresql-17 (Debian package)
How to mitigate CVE-2026-16239
postgresql-17 (Debian package) - update to 17.11-0+deb13u1