CVE-2026-16238

Summary

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.

Affected Software

VendorProductVersion RangeStatus
n/aPostgreSQL18 < 18.5affected

Weaknesses

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Workarounds

Revoke public EXECUTE permission on the function

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

References