CVE-2026-16239
Received Received - Intake

Type Confusion in PostgreSQL Database

Vulnerability report for CVE-2026-16239, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: PostgreSQL

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
postgresql postgresql to 18.5 (exc)
postgresql postgresql to 17.11 (exc)
postgresql postgresql to 16.15 (exc)
postgresql postgresql to 15.19 (exc)
postgresql postgresql to 14.24 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-843 The product 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a type confusion vulnerability in PostgreSQL affecting the portal or cursor lifecycle. It allows a user to execute arbitrary code as the operating system user running the database by re-creating a cursor or portal with different types.

Detection Guidance

To detect this vulnerability, check your PostgreSQL version using the command: psql --version. If your version is below 18.5, 17.11, 16.15, 15.19, or 14.24, your system is vulnerable. Additionally, review database logs for unusual cursor or portal recreation activities that may indicate exploitation attempts.

Impact Analysis

An attacker could exploit this to run malicious code with the same privileges as the PostgreSQL database service, potentially leading to data theft, system compromise, or disruption of database operations.

Compliance Impact

This vulnerability allows arbitrary code execution as the database user, potentially leading to unauthorized data access, modification, or deletion. Such breaches could violate GDPR's data protection requirements or HIPAA's safeguards for protected health information, depending on the data stored.

Mitigation Strategies

Upgrade PostgreSQL to a patched version (18.5, 17.11, 16.15, 15.19, or 14.24 or later) immediately to address the type confusion vulnerability in the portal/cursor lifecycle.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-16239. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart