CVE-2026-6467: 
PostgreSQL vulnerability analysis and mitigation

Overview

CVE-2026-6467 is an uncontrolled search path element vulnerability in PostgreSQL's extension management system that allows an authenticated attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser. The flaw can be triggered via ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user", causing trusted-extension scripts to locate the wrong object and execute arbitrary SQL of the attacker's choice. ALTER EXTENSION was also affected. Affected versions include PostgreSQL before 18.7, 17.12, 16.16, 15.20, and 14.25. It was published on November 12, 2026, with a CVSS v3.1 base score of 7.2 (High) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-427 (Uncontrolled Search Path Element): PostgreSQL's extension management logic does not properly validate the schema search path when executing trusted-extension scripts, allowing an attacker to manipulate which schema objects are resolved. By renaming a schema via ALTER SCHEMA ... RENAME or specifying CREATE EXTENSION ... SCHEMA "$user", the attacker can redirect the extension script to locate attacker-controlled objects instead of the intended ones, causing arbitrary SQL to be executed with bootstrap superuser privileges. The attack vector is network-accessible, requires no user interaction, but does require high privileges (database-level CREATE). A patch commit is available in the PostgreSQL git repository (PostgreSQL Git, GitHub Advisory).

Impact

Successful exploitation allows an authenticated database user with CREATE privilege to escalate to bootstrap superuser, enabling full control over the PostgreSQL instance including reading, modifying, or deleting all data, creating backdoor accounts, and potentially pivoting to connected systems or the underlying host depending on server configuration. All three security pillars — confidentiality, integrity, and availability — are rated High impact (GitHub Advisory, Red Hat Bugzilla).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The EPSS score is approximately 0.615%, indicating a relatively low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Qualys has added detection support (detection ID 389450) (Feedly).

Exploitation steps

  1. Reconnaissance: Identify a PostgreSQL instance running a vulnerable version (before 18.7, 17.12, 16.16, 15.20, or 14.25) and obtain or compromise a database account with database-level CREATE privilege.
  2. Schema manipulation: Use ALTER SCHEMA <existing_schema> RENAME TO <target_name> to rename a schema to a name that will be resolved during extension installation (e.g., matching the $user variable or a schema expected by a trusted extension script).
  3. Trigger extension loading: Execute CREATE EXTENSION <trusted_extension> SCHEMA "$user" or ALTER EXTENSION <trusted_extension> to cause PostgreSQL to resolve schema objects using the manipulated search path.
  4. Arbitrary SQL execution: The trusted-extension script locates the attacker-controlled schema object instead of the intended one, executing arbitrary SQL supplied by the attacker with bootstrap superuser privileges.
  5. Privilege escalation: Use the superuser context to create a new superuser account, exfiltrate data, or execute OS-level commands via COPY TO/FROM PROGRAM or pg_read_file() if available (PostgreSQL Advisory, GitHub Advisory).

Indicators of compromise

  • Logs: PostgreSQL server logs showing CREATE EXTENSION or ALTER EXTENSION commands executed by non-superuser accounts, especially with SCHEMA "$user" or unusual schema names; ALTER SCHEMA ... RENAME operations immediately preceding extension operations.
  • Database: Unexpected new superuser accounts or roles with elevated privileges; unauthorized changes to system catalogs (pg_extension, pg_namespace); unusual entries in pg_stat_activity showing high-privilege SQL from low-privilege users.
  • Network: Unexpected outbound connections from the PostgreSQL process following extension operations, which may indicate post-exploitation activity such as data exfiltration.
  • Process: Unusual child processes spawned by the PostgreSQL backend (e.g., shell commands via COPY ... FROM PROGRAM) following extension management operations (Red Hat Bugzilla, GitHub Advisory).

Mitigation and workarounds

Upgrade PostgreSQL to the patched versions: 18.7, 17.12, 16.16, 15.20, or 14.25 (PostgreSQL Release). As a workaround prior to patching, restrict database-level CREATE privileges to only fully trusted users, as the vulnerability requires this privilege to exploit. Review and audit existing grants of CREATE privilege on databases, and monitor audit logs for suspicious CREATE EXTENSION, ALTER EXTENSION, and ALTER SCHEMA ... RENAME operations. Red Hat has issued errata (RHSA-2026:100123) for affected RHEL packages (Red Hat Advisory). Amazon Linux advisories are also available for AL2, AL2023, and AL2027 (Amazon Linux).

Community reactions

The PostgreSQL project disclosed the vulnerability alongside a broader November 2026 security release that addressed 52 flaws, drawing notable community attention (sh3llc0d3 Blog). Security blogs including pganalyze and HeroDevs covered the release in the context of the broader patch batch (pganalyze Blog). OPSWAT published an impact assessment for their products (OPSWAT Blog). The oss-security mailing list also carried the disclosure (oss-sec).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

postgresql-15: 15.20-0+deb12u1

Fixed

sid

postgresql-18: 18.7-1

Fixed

trixie

postgresql-17: 17.12-0+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-infra)

postgresql-10

Unknown

devel

postgresql-18

Unknown

focal (esm-infra)

postgresql-12

Unknown

jammy

postgresql-14

Unknown

noble

postgresql-16

Unknown

resolute

postgresql-18

Unknown

trusty (esm-infra-legacy)

postgresql-9.3

Deferred

xenial (esm-infra-legacy)

postgresql-9.5

Unknown

RHEL / CentOS

Affected

RHEL 8

postgresql:12/postgresql.src

Affected

RHEL 9

postgresql.src

Affected

RHEL 10

postgresql16.src

Affected

Alpine

Fixed

edge

postgresql16: 16.16-r0

Fixed

v3.21

postgresql15: 15.20-r0

Fixed

v3.22

postgresql15: 15.20-r0

Fixed

v3.23

postgresql16: 16.16-r0

Fixed

Source: This report was generated using AI

Related PostgreSQL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-6460HIGH8.8
  • PostgreSQL logoPostgreSQL
  • postgresql18-pltcl
NoYesNov 12, 2026
CVE-2026-18447HIGH8.8
  • PostgreSQL logoPostgreSQL
  • postgresql15-test
NoYesNov 12, 2026
CVE-2026-6467HIGH7.2
  • PostgreSQL logoPostgreSQL
  • postgresql15-client
NoYesNov 12, 2026
CVE-2026-16237MEDIUM5.4
  • PostgreSQL logoPostgreSQL
  • postgresql16-llvmjit-debuginfo
NoYesNov 12, 2026
CVE-2026-16240LOW3.7
  • PostgreSQL logoPostgreSQL
  • postgresql15-private-libs
NoYesNov 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management