CVE-2026-16238
JSON

8.8high

PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code

Severity
8.8high CVSS:3.1 by PostgreSQL
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PostgreSQL
Also known as
BIT-POSTGRESQL-2026-16238

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

Affected

Product or packageVersionsReported by
PostgreSQLfrom 18 before 18.6CVE List
postgresql postgresqlfrom 14.0 before 14.24, from 15.0 before 15.19, from 16.0 before 16.15, from 17.0 before 17.11, from 18.0 before 18.5NVD
postgresql (Bitnami)from 18.0.0 before 18.5.0Bitnami Vulnerability Database

All scores

PostgreSQL8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-843

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-16238 changed 2026-08-29CVE Terms of Use
NVDCVE-2026-16238 changed 2026-08-29Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-2026-16238 changed 2026-09-08Apache-2.0