agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Check CREATE privilege on multirange type schema in CREATE TYPE.
Date: Mon, 11 May 2026 12:19:38 +0000
Message-ID: <E1wMPbm-0002YH-27@gemulon.postgresql.org> (raw)

Check CREATE privilege on multirange type schema in CREATE TYPE.

This omission allowed roles to create multirange types in any
schema, potentially leading to privilege escalations.  Note that
when a multirange type name is not specified in CREATE TYPE, it is
automatically placed in the range type's schema, which is checked
at the beginning of DefineRange().

Reported-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Security: CVE-2026-6472
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c27ba08cd5c58659b32805fe807683cde5429ab2
Author: Nathan Bossart <nathan@postgresql.org>

Modified Files
--------------
src/backend/commands/typecmds.c               |  7 +++++++
src/test/regress/expected/multirangetypes.out | 16 ++++++++++++++++
src/test/regress/sql/multirangetypes.sql      | 16 ++++++++++++++++
3 files changed, 39 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1wMPbm-0002YH-27@gemulon.postgresql.org>
Permalink:  ../E1wMPbm-0002YH-27@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wMPbm-0002YH-27@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Check CREATE privilege on multirange type schema in CREATE TYPE.
  In-Reply-To: <E1wMPbm-0002YH-27@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox