CVE-2026-6467: 
PostgreSQL Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-6467 is an uncontrolled search path element vulnerability in PostgreSQL's extension management system (CWE-427) 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, CREATE EXTENSION ... SCHEMA "$user", or ALTER EXTENSION commands, causing trusted-extension scripts to locate the wrong object and execute arbitrary SQL. 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).

Détails techniques

The root cause is an uncontrolled search path element (CWE-427) in PostgreSQL's CREATE EXTENSION, ALTER EXTENSION, and ALTER SCHEMA logic. When a trusted extension script resolves schema objects, it can be manipulated to locate the wrong schema — specifically by renaming a schema to $user or specifying a schema via CREATE EXTENSION ... SCHEMA "$user" — causing the extension script to execute arbitrary SQL chosen by the attacker in the context of the bootstrap superuser. The attack is network-accessible, requires no user interaction, but does require the attacker to hold database-level CREATE privilege. The fix is tracked in the PostgreSQL git repository (PostgreSQL Git).

Impact

Successful exploitation allows an authenticated database user with CREATE privilege to escalate privileges to the bootstrap superuser, effectively gaining full control over the PostgreSQL instance. This enables complete compromise of database confidentiality, integrity, and availability — including reading or modifying all data, creating backdoor accounts, and potentially pivoting to connected systems or the underlying host depending on server configuration. The technical impact is rated as "total" by NVD's SSVC assessment (GitHub Advisory, Red Hat Bugzilla).

Exploitabilité

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 NVD SSVC assessment classifies exploitation as "none" and the vulnerability as non-automatable, reflecting the requirement for an authenticated attacker with CREATE privilege. The EPSS score is approximately 0.615%, indicating a low near-term exploitation probability. CVE-2026-6467 does not appear in the CISA Known Exploited Vulnerabilities (KEV) catalog at this time. No threat actor attribution has been reported.

Étapes d’exploitation

  1. Gain database access: Obtain credentials for a PostgreSQL database user that holds the database-level CREATE privilege (e.g., a developer or application account).
  2. Prepare a schema named $user: Execute CREATE SCHEMA "$user" or rename an existing schema using ALTER SCHEMA existing_name RENAME TO "$user" to place a schema in the search path that matches the current user's name.
  3. Place a malicious object in the schema: Create a function, table, or other object within the $user schema that mimics an object expected by a trusted extension's installation script.
  4. Trigger extension installation or alteration: Execute CREATE EXTENSION trusted_extension SCHEMA "$user" or ALTER EXTENSION trusted_extension UPDATE, causing the extension script to resolve objects against the attacker-controlled schema.
  5. Achieve superuser code execution: The trusted-extension script locates the attacker's malicious object instead of the legitimate one and executes the attacker's arbitrary SQL as the bootstrap superuser, enabling privilege escalation, data exfiltration, or further system compromise (GitHub Advisory, PostgreSQL Git).

Indicateurs de compromis

  • Logs: PostgreSQL server logs (postgresql.log) showing CREATE EXTENSION, ALTER EXTENSION, or ALTER SCHEMA ... RENAME commands executed by non-superuser accounts, especially involving schema names matching usernames ($user).
  • Logs: Audit log entries showing DDL operations (schema creation or renaming) immediately preceding extension installation or update commands from the same session.
  • Database State: Unexpected schemas named after database users containing functions or objects that shadow system or extension objects.
  • Database State: Presence of unauthorized superuser accounts or changes to pg_authid / pg_roles not initiated by a known administrator.
  • Process: Unusual commands or scripts executed by the PostgreSQL server process (e.g., pg_execute_server_program calls, unexpected OS-level process spawning from the postgres process).

Atténuation et solutions de contournement

Upgrade PostgreSQL to the patched versions: 18.7, 17.12, 16.16, 15.20, or 14.25 (PostgreSQL Release). As an interim workaround, restrict the database-level CREATE privilege to only fully trusted users, since the attack requires this privilege. Review and audit existing grants of CREATE privilege across all databases. Additionally, monitor audit logs for suspicious CREATE EXTENSION, ALTER EXTENSION, and ALTER SCHEMA operations performed by non-administrative users (Red Hat Bugzilla).

Réactions de la communauté

The PostgreSQL project released a coordinated security update on November 12, 2026, addressing this and other CVEs simultaneously, which received coverage from security blogs noting the breadth of the release (pganalyze Blog). Red Hat tracked the issue as a high-severity bug and initiated dependency tracking for affected packages (Red Hat Bugzilla). Security community coverage highlighted the privilege escalation risk for multi-tenant PostgreSQL environments where CREATE privilege may be broadly granted. OPSWAT published a blog post assessing the impact on their products (OPSWAT Blog).

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Debian

Fixé

bookworm

postgresql-15: 15.20-0+deb12u1

Fixé

sid

postgresql-18: 18.7-1

Fixé

trixie

postgresql-17: 17.12-0+deb13u1

Fixé

Ubuntu

Inconnu

bionic (esm-infra)

postgresql-10

Inconnu

devel

postgresql-18

Inconnu

focal (esm-infra)

postgresql-12

Inconnu

jammy

postgresql-14

Inconnu

noble

postgresql-16

Inconnu

resolute

postgresql-18

Inconnu

trusty (esm-infra-legacy)

postgresql-9.3

Reporté

xenial (esm-infra-legacy)

postgresql-9.5

Inconnu

RHEL / CentOS

Affecté

RHEL 8

postgresql:12/postgresql.src

Affecté

RHEL 9

postgresql.src

Affecté

RHEL 10

postgresql16.src

Affecté

Alpine

Fixé

edge

postgresql16: 16.16-r0

Fixé

v3.21

postgresql15: 15.20-r0

Fixé

v3.22

postgresql15: 15.20-r0

Fixé

v3.23

postgresql16: 16.16-r0

Fixé

Source: Ce rapport a été généré à l’aide de l’IA

Connexe PostgreSQL Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-6467HIGH7.2
  • PostgreSQL logoPostgreSQL
  • postgresql:15::postgresql-docs
NonOuiNov 12, 2026
CVE-2026-124024MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • zscaler-mcp
NonOuiNov 17, 2026
CVE-2026-121758MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • glibc-langpack-wa
NonOuiNov 17, 2026
CVE-2026-121757MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • glibc-langpack-uk
NonOuiNov 17, 2026
CVE-2026-126765LOW3.7
  • PostgreSQL logoPostgreSQL
  • nessie-0.108
NonOuiNov 19, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités