CVE-2026-6467
PostgreSQL extension script schema mishandling executes arbitrary SQL
- Severity
- high CVSS 7.2 (v3.1)
- Affects
- PostgreSQL · n/a
- Weakness
- CWE-427: Uncontrolled Search Path Element
- Published
- 12 November 2026 by PostgreSQL
- First seen on our lists
- 12 November 2026
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.
Our coverage
On the lists
- [oss-security] PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25, and 19 RC 2 Released, fixes 52 security vulnerabilities