CVE-2026-16238

published 13 Aug 2026 · updated 29 Aug 2026

PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 18.6.

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.6 are affected. Versions before PostgreSQL 18 are unaffected.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
>=18 <18.618.6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-16238 severity on Zeptric[![CVE-2026-16238](https://zeptric.io/badge/cve/CVE-2026-16238.svg)](https://zeptric.io/cve/CVE-2026-16238)