
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).CREATE EXTENSION <trusted_extension> SCHEMA "$user" or ALTER EXTENSION <trusted_extension> to cause PostgreSQL to resolve schema objects using the manipulated search path.COPY TO/FROM PROGRAM or pg_read_file() if available (PostgreSQL Advisory, GitHub Advisory).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.pg_extension, pg_namespace); unusual entries in pg_stat_activity showing high-privilege SQL from low-privilege users.COPY ... FROM PROGRAM) following extension management operations (Red Hat Bugzilla, GitHub Advisory).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).
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).
Fix availability across major Linux distributions and their releases.
bookworm
postgresql-15: 15.20-0+deb12u1
sid
postgresql-18: 18.7-1
trixie
postgresql-17: 17.12-0+deb13u1
bionic (esm-infra)
postgresql-10
devel
postgresql-18
focal (esm-infra)
postgresql-12
jammy
postgresql-14
noble
postgresql-16
resolute
postgresql-18
trusty (esm-infra-legacy)
postgresql-9.3
xenial (esm-infra-legacy)
postgresql-9.5
RHEL 8
postgresql:12/postgresql.src
RHEL 9
postgresql.src
RHEL 10
postgresql16.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."