pgsql: Check for USAGE privilege on the composite type in ALTER TABLE O
pgsql: Check for USAGE privilege on the composite type in ALTER TABLE O
От:
Noah Misch <noah@leadboat.com>
Дата:
Check for USAGE privilege on the composite type in ALTER TABLE OF. This omission allowed roles without USAGE on a type to create tables that depend on it, which could prevent the owner from changing the type later. Reported-by: Nathan Bossart Author: Nathan Bossart Reviewed-by: Robert Haas Security: CVE-2026-6470 Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b6e45b4f82481b54134640887fc1cdf4791f9b3a Author: Nathan Bossart Modified Files -------------- src/backend/commands/tablecmds.c | 5 +++++ src/test/regress/expected/privileges.out | 6 ++++++ src/test/regress/sql/privileges.sql | 5 +++++ 3 files changed, 16 insertions(+)