CVE-2026-16239 HIGH

CVE-2026-16239: PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code

Vendor N/A
Product PostgreSQL
Weakness CWE-843
Published August 13, 2026
Last update August 13, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 13, 2026 CVE published
August 13, 2026 Record updated