Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET D...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSpostgresql-9.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSpostgresql-9.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSpostgresql-10 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSpostgresql-12 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSpostgresql-14 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSpostgresql-16 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10postgresql-18 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSpostgresql-18 |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET DATA TYPE primarily. Other DDL attack routes exist, such as "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN". The system had inadequate tracking of typed values, and values were not self-identifying. Stale values could appear in data dictionary entries, PL/pgSQL variables, and many other parts of the system. PostgreSQL Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report postgresql.org
- report postgresql.org