Skip to main content
EPSS 0.7%top 49%

CVE-2026-16239: Access of Resource Using Incompatible Type ('Type Confusion') in PostgreSQL

0
High
VulnerabilityCVE-2026-16239cvecve-2026-16239
Published: 08/13/2026 (08/13/2026, 13:00:13 UTC)
Source: CVE Database V5
Product: PostgreSQL

Description

CVE-2026-16239 is a high-severity type confusion vulnerability in PostgreSQL affecting multiple versions prior to 18.6, 17.11, 16.15, 15.19, and 14.24. It involves improper handling of the portal or cursor lifecycle, allowing a user with certain privileges to execute arbitrary code as the operating system user running the database.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

PostgreSQL

Affected versions
>=18 <18.6>=17 <17.11>=16 <16.15>=15 <15.19>=0 <14.24
Postgresqlmore threats →ai
postgresql/postgresql
pkg:deb/postgresql/postgresql
Affected versions
<18.5<17.11<16.15<15.19<14.24

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 04:32:15 UTC

Technical Analysis

This vulnerability arises from type confusion in PostgreSQL's portal or cursor lifecycle, where re-creating a cursor or portal with different types can lead to arbitrary code execution. The flaw allows an attacker with database privileges to escalate to OS-level code execution. Affected versions include all releases before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24.

Potential Impact

Successful exploitation enables an attacker with database access privileges to execute arbitrary code with the operating system privileges of the PostgreSQL server process. This can lead to full system compromise, data theft, or disruption of database services.

Mitigation Recommendations

Upgrading PostgreSQL to version 18.6, 17.11, 16.15, 15.19, or 14.24 or later addresses this vulnerability. Users should apply these official fixes promptly. No information about alternative mitigations or temporary workarounds is provided.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-07-20T01:55:33.311Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a7dc619bf8831d5393e53fa

Added to database: 08/13/2026, 13:26:49 UTC

Last enriched: 09/12/2026, 04:32:15 UTC

Last updated: 09/28/2026, 13:47:42 UTC

Views: 53

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses