CVE-2026-16238: Access of Resource Using Incompatible Type ('Type Confusion') in PostgreSQL
Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database, via conflation of range and multirange values. Within major version 18, minor versions before PostgreSQL 18.5 are affected. Versions before PostgreSQL 18 are unaffected.
AI Analysis
Technical Summary
This vulnerability involves a type confusion flaw in PostgreSQL's pg_restore_attribute_stats() function. Specifically, the conflation of range and multirange values can be exploited by an object creator to execute arbitrary code with the privileges of the OS user running the database process. The issue affects PostgreSQL major version 18, minor versions before 18.5. No affected versions prior to 18 are impacted.
Potential Impact
Successful exploitation allows an attacker with object creation privileges to execute arbitrary code on the operating system with the same privileges as the database server process. This can lead to full compromise of the database host under the database user context. The CVSS 3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict object creation privileges to trusted users only to reduce risk.
CVE-2026-16238: Access of Resource Using Incompatible Type ('Type Confusion') in PostgreSQL
Description
Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database, via conflation of range and multirange values. Within major version 18, minor versions before PostgreSQL 18.5 are affected. Versions before PostgreSQL 18 are unaffected.
CVSS v3.1
Score 8.8high
Affected software
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
Technical Analysis
This vulnerability involves a type confusion flaw in PostgreSQL's pg_restore_attribute_stats() function. Specifically, the conflation of range and multirange values can be exploited by an object creator to execute arbitrary code with the privileges of the OS user running the database process. The issue affects PostgreSQL major version 18, minor versions before 18.5. No affected versions prior to 18 are impacted.
Potential Impact
Successful exploitation allows an attacker with object creation privileges to execute arbitrary code on the operating system with the same privileges as the database server process. This can lead to full compromise of the database host under the database user context. The CVSS 3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict object creation privileges to trusted users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-07-20T01:55:07.055Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dc617bf8831d5393e53b9
Added to database: 08/13/2026, 13:26:47 UTC
Last enriched: 08/13/2026, 13:42:27 UTC
Last updated: 08/13/2026, 23:40:59 UTC
Views: 6
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.