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.
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
- Upgrade to the November 2026 minor release.
- Revoke CREATE on databases from roles that do not need it.
- 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").
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) →