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 for USAGE privilege on the subtype in CREATE TYPE AS RANGE
Date: Mon, 10 Aug 2026 13:41:25 +0000
Message-ID: <E1wtQFp-00000000y9w-2Ixa@gemulon.postgresql.org> (raw)

Check for USAGE privilege on the subtype in CREATE TYPE AS RANGE.

This omission allowed roles without USAGE on a type to create range
types that depend on it, which could prevent the owner from
changing the type later.

Reported-by: Jingzhou Fu <fuboat@outlook.com>
Author: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Noah Misch <noah@leadboat.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Security: CVE-2026-6470
Backpatch-through: 14

Branch
------
REL_18_STABLE

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

Modified Files
--------------
doc/src/sgml/ref/create_type.sgml        |  5 +++++
src/backend/commands/typecmds.c          |  4 ++++
src/test/regress/expected/rangetypes.out | 15 +++++++++++++++
src/test/regress/sql/rangetypes.sql      | 14 ++++++++++++++
4 files changed, 38 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1wtQFp-00000000y9w-2Ixa@gemulon.postgresql.org>
Permalink:  ../E1wtQFp-00000000y9w-2Ixa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wtQFp-00000000y9w-2Ixa@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 for USAGE privilege on the subtype in CREATE TYPE AS RANGE
  In-Reply-To: <E1wtQFp-00000000y9w-2Ixa@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