UBUNTU-CVE-2026-6467: High severity ubuntu/postgresql-9.3 vulnerability
Uncontrolled 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
postgresqlto a version that resolves this vulnerability.Fixed in 18.7 - Upgrade
Upgrade
postgresqlto a version that resolves this vulnerability.Fixed in 17.12 - Upgrade
Upgrade
postgresqlto a version that resolves this vulnerability.Fixed in 16.16 - Upgrade
Upgrade
postgresqlto a version that resolves this vulnerability.Fixed in 15.20 - Upgrade
Upgrade
postgresqlto a version that resolves this vulnerability.Fixed in 14.25
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs database-level CREATE privilege. The vulnerable operations can then cause a trusted extension script to find an attacker-controlled object and execute attacker-chosen SQL as the bootstrap superuser.
Which PostgreSQL releases are affected?
PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. The provided software list includes Ubuntu PostgreSQL packages for versions 18, 16, 14, 12, 10, 9.5, and 9.3, but no fixed versions are provided for releases outside the listed supported fixed branches.
Which operations can trigger the vulnerable behavior?
The issue can be triggered through ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user". ALTER EXTENSION is also affected.