agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix SQL injection in logical replication origin checks.
Date: Mon, 11 May 2026 12:19:38 +0000
Message-ID: <E1wMPbm-0002XZ-1L@gemulon.postgresql.org> (raw)
Fix SQL injection in logical replication origin checks.
ALTER SUBSCRIPTION ... REFRESH PUBLICATION interpolates schema and
relation names into SQL without quoting them. A crafted subscriber
relation name can inject arbitrary SQL on the publisher. Test such a
name. Back-patch to v16, where commit
875693019053b8897ec3983e292acbb439b088c3 first appeared.
Reported-by: Pavel Kohout <pavel.kohout@aisle.com>
Author: Pavel Kohout <pavel.kohout@aisle.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Backpatch-through: 16
Security: CVE-2026-6638
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f0f59b658ef10901c9af3af7705c802a72a0577e
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 9 +++++++--
src/test/subscription/t/030_origin.pl | 35 ++++++++++++++++++---------------
2 files changed, 26 insertions(+), 18 deletions(-)
view thread (4+ messages) latest in thread
Message-ID: <E1wMPbm-0002XZ-1L@gemulon.postgresql.org>
Permalink: ../E1wMPbm-0002XZ-1L@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wMPbm-0002XZ-1L@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: Fix SQL injection in logical replication origin checks.
In-Reply-To: <E1wMPbm-0002XZ-1L@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