Type Confusion in PostgreSQL - CVE-2026-16238

 

Type Confusion in PostgreSQL - CVE-2026-16238

Published: August 15, 2026


Vulnerability identifier: #VU142624
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-16238
CWE-ID: CWE-843
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to type confusion in pg_restore_attribute_stats() when restoring attribute statistics involving conflated range and multirange values. A remote user can create a crafted object to execute arbitrary code.

Code execution occurs as the operating system user running the database.


Affected software

PostgreSQL

How to mitigate CVE-2026-16238

Install security update from vendor's website.

PostgreSQL - update to 18.5

External References

Related Security Bulletins