CVE-2026-16239: Access of Resource Using Incompatible Type ('Type Confusion') in PostgreSQL
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.
AI Analysis
Technical Summary
This vulnerability involves type confusion in the management of PostgreSQL portals and cursors, which can be exploited by an attacker to execute arbitrary code with the privileges of the OS user running the database process. The flaw arises when a cursor or portal is recreated with different data types, leading to unsafe memory access. Affected versions include all releases prior to 18.5, 17.11, 16.15, 15.19, and 14.24. The CVSS 3.1 base score is 8.8, indicating high impact on confidentiality, integrity, and availability. No vendor advisory or patch information is currently provided, so remediation status is unknown.
Potential Impact
Successful exploitation can lead to arbitrary code execution with the operating system privileges of the PostgreSQL server process, potentially allowing full compromise of the database server environment. The vulnerability affects confidentiality, integrity, and availability of the affected systems.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted users only and monitor for suspicious activity related to cursor or portal usage.
CVE-2026-16239: Access of Resource Using Incompatible Type ('Type Confusion') in 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 v3.1
Score 8.8high
Affected software
pkg:deb/postgresql/postgresqlRun 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
Technical Analysis
This vulnerability involves type confusion in the management of PostgreSQL portals and cursors, which can be exploited by an attacker to execute arbitrary code with the privileges of the OS user running the database process. The flaw arises when a cursor or portal is recreated with different data types, leading to unsafe memory access. Affected versions include all releases prior to 18.5, 17.11, 16.15, 15.19, and 14.24. The CVSS 3.1 base score is 8.8, indicating high impact on confidentiality, integrity, and availability. No vendor advisory or patch information is currently provided, so remediation status is unknown.
Potential Impact
Successful exploitation can lead to arbitrary code execution with the operating system privileges of the PostgreSQL server process, potentially allowing full compromise of the database server environment. The vulnerability affects confidentiality, integrity, and availability of the affected systems.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to trusted users only and monitor for suspicious activity related to cursor or portal usage.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-07-20T01:55:33.311Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dc619bf8831d5393e53fa
Added to database: 08/13/2026, 13:26:49 UTC
Last enriched: 08/13/2026, 13:42:07 UTC
Last updated: 08/13/2026, 22:40:59 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.