CVE-2026-6467 HIGH · CVSS 7.2 · PostgreSQL Global Development Group — PostgreSQL ·

CVE-2026-6467: CREATE/ALTER EXTENSION script schema handling (trusted extensions)

CREATE EXTENSION or ALTER EXTENSION for a trusted extension can be tricked into running attacker-chosen SQL as the bootstrap superuser, by renaming the extension schema or targeting "$user". Any role with CREATE on the database can escalate to superuser.

Identifier
CVE-2026-6467
Vendor / Product
PostgreSQL Global Development Group · PostgreSQL
Severity / CVSS
HIGH · CVSS 7.2
Vector / CWE
CWE-89 (SQL Injection) / search-path confusion
Network, low privileges: a role with CREATE privilege on the database renames a trusted extension schema or targets "$user"
Affected
PostgreSQL 14, 15, 16, 17 and 18 before 14.25, 15.20, 16.16, 17.12 and 18.7
Patched Version
PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25
Priority
P1 for multi-tenant databases where non-admin roles hold CREATE

Executive Summary & Technical Impact

CREATE EXTENSION or ALTER EXTENSION for a trusted extension can be tricked into running attacker-chosen SQL as the bootstrap superuser, by renaming the extension schema or targeting "$user". Any role with CREATE on the database can escalate to superuser.

Tracked under CVE-2026-6467 (CWE-89 (SQL Injection) / search-path confusion), this vulnerability affects PostgreSQL 14, 15, 16, 17 and 18 before 14.25, 15.20, 16.16, 17.12 and 18.7 and carries a severity score of 7.2 (HIGH). Engineering and security operations teams running PostgreSQL should prioritize upgrading to PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25.

Remediation & Patch Guidance

  1. Upgrade to the November 2026 minor release.
  2. Revoke CREATE on databases from roles that do not need it.
  3. Audit recently created or altered extensions and schema renames.

Frequently Asked Questions (CVE-2026-6467)

What versions are affected by CVE-2026-6467?

CVE-2026-6467 affects PostgreSQL 14, 15, 16, 17 and 18 before 14.25, 15.20, 16.16, 17.12 and 18.7 in PostgreSQL (CREATE/ALTER EXTENSION script schema handling (trusted extensions)).

How do I patch or remediate CVE-2026-6467?

Upgrade affected deployments to PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 and verify the remediation steps listed above.

What is the CVSS score of CVE-2026-6467?

CVE-2026-6467 is rated HIGH with a CVSS score of 7.2 (vector: Network, low privileges: a role with CREATE privilege on the database renames a trusted extension schema or targets "$user").

Full TechPulse Investigation

PostgreSQL 18.7 Fixes 52 CVEs, Led by a 22-Year-Old Type Confusion Bug (CVE-2026-6460) That Breaks the Extension ABI

The November minor releases for PostgreSQL 14 through 18 close 52 vulnerabilities, many of them memory-corruption bugs any user who can run SQL can reach. The main fix changes how composite values are stored, so C extensions have to be rebuilt, and some need code changes.

Read full engineering post-mortem (6 min read) →

Official Vendor & NVD Advisory Links

  1. PostgreSQL — November 2026 release announcement
  2. pganalyze — CVE grouping