pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: pg_basebackup: Fix use of externally-controlled format string
4+ messages / 1 participants
[nested] [flat]

* pgsql: pg_basebackup: Fix use of externally-controlled format string
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_basebackup: Fix use of externally-controlled format string

appendPQExpBuffer() was accidentally used instead of
appendBinaryPQExpBuffer() in pg_basebackup.  The former would
interpret the string to be appended as a format string, which could
lead to misbehavior.  (The string contents are related to backup
manifest contents.  Those do not normally contain any data that could
look like a format placeholders.  In order for this to misbehave,
files with unusual names would have to exist in the data directory.)

- The hunk in ReceiveBackupManifestInMemoryChunk() is from commit
  0d8c9c1210c, 2020, PG13.  This is only reachable against a pre-PG15
  server, because of the next item.

- The hunk in ReceiveArchiveStreamChunk() is from commit cc333f32336,
  2022, PG15.

Security: CVE-2026-16240
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4a18e9b5f36206584501910c81d0da154f88af54
Author: Peter Eisentraut <peter@eisentraut.org>

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: pg_basebackup: Fix use of externally-controlled format string
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_basebackup: Fix use of externally-controlled format string

appendPQExpBuffer() was accidentally used instead of
appendBinaryPQExpBuffer() in pg_basebackup.  The former would
interpret the string to be appended as a format string, which could
lead to misbehavior.  (The string contents are related to backup
manifest contents.  Those do not normally contain any data that could
look like a format placeholders.  In order for this to misbehave,
files with unusual names would have to exist in the data directory.)

- The hunk in ReceiveBackupManifestInMemoryChunk() is from commit
  0d8c9c1210c, 2020, PG13.  This is only reachable against a pre-PG15
  server, because of the next item.

- The hunk in ReceiveArchiveStreamChunk() is from commit cc333f32336,
  2022, PG15.

Security: CVE-2026-16240
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/410b7056e9d763839a9890e23629b9c44421150f
Author: Peter Eisentraut <peter@eisentraut.org>

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: pg_basebackup: Fix use of externally-controlled format string
@ 2026-11-09 14:21  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_basebackup: Fix use of externally-controlled format string

appendPQExpBuffer() was accidentally used instead of
appendBinaryPQExpBuffer() in pg_basebackup.  The former would
interpret the string to be appended as a format string, which could
lead to misbehavior.  (The string contents are related to backup
manifest contents.  Those do not normally contain any data that could
look like a format placeholders.  In order for this to misbehave,
files with unusual names would have to exist in the data directory.)

- The hunk in ReceiveBackupManifestInMemoryChunk() is from commit
  0d8c9c1210c, 2020, PG13.  This is only reachable against a pre-PG15
  server, because of the next item.

- The hunk in ReceiveArchiveStreamChunk() is from commit cc333f32336,
  2022, PG15.

Security: CVE-2026-16240
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/af250ef26280d49ef301c9c64b0d4740180c8821
Author: Peter Eisentraut <peter@eisentraut.org>

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: pg_basebackup: Fix use of externally-controlled format string
@ 2026-11-09 14:22  Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Noah Misch @ 2026-11-09 14:22 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_basebackup: Fix use of externally-controlled format string

appendPQExpBuffer() was accidentally used instead of
appendBinaryPQExpBuffer() in pg_basebackup.  The former would
interpret the string to be appended as a format string, which could
lead to misbehavior.  (The string contents are related to backup
manifest contents.  Those do not normally contain any data that could
look like a format placeholders.  In order for this to misbehave,
files with unusual names would have to exist in the data directory.)

- The hunk in ReceiveBackupManifestInMemoryChunk() is from commit
  0d8c9c1210c, 2020, PG13.  This is only reachable against a pre-PG15
  server, because of the next item.

- The hunk in ReceiveArchiveStreamChunk() is from commit cc333f32336,
  2022, PG15.

Security: CVE-2026-16240
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/04986ad59d6167d3ed884a2045b99fca8a9733a8
Author: Peter Eisentraut <peter@eisentraut.org>

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2026-11-09 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 14:21 pgsql: pg_basebackup: Fix use of externally-controlled format string Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: pg_basebackup: Fix use of externally-controlled format string Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: pg_basebackup: Fix use of externally-controlled format string Noah Misch <noah@leadboat.com>
2026-11-09 14:22 pgsql: pg_basebackup: Fix use of externally-controlled format string Noah Misch <noah@leadboat.com>

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