CVE-2026-6467 · Runtime
NO FIX YET · SEE WHAT TO DO
PostgreSQL's CREATE EXTENSION and ALTER EXTENSION commands can be tricked into running an attacker's SQL, because a trusted extension script resolves the wrong object through the search path. An attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.
first public Nov 12, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Any PostgreSQL server before the fixed versions is exposed, but only to users who already hold CREATE privilege on a database, such as a schema owner or a role given database-level CREATE. Deployments where only the superuser can create objects are much less exposed. Teams should inventory roles with CREATE privilege and move to a fixed release.
Not affected if managed-hosting, only-superuser-creates-objects
Who cares database, postgresql, self-hosted
SELECT version(); in psql and compare against the fixed versions below.\l and \dn+ in psql.18.717.1216.16Uncontrolled search path element in PostgreSQL CREATE EXTENSION allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user". ALTER EXTENSION was also affected. A trusted-extension script located the wrong object and executed arbitrary SQL of the attacker's choice. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
15.2014.25