| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Use value of scram_iterations in mock_scram_secret(). |
| Date: | 2026-08-10 13:41:22 |
| Message-ID: | E1wtQFm-00000000y52-350r@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Use value of scram_iterations in mock_scram_secret().
Presently, mock_scram_secret() always uses
SCRAM_SHA_256_DEFAULT_ITERATIONS, which poses an observable
response discrepancy hazard when scram_iterations is set to
something else. To fix, use the value of the configuration
parameter instead, and document that unauthenticated users can
discover the existence of roles with passwords created with
different iteration counts.
Reported-by: Radim Marek <radim(at)boringsql(dot)com>
Author: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Reviewed-by: Jacob Champion <champion(dot)p(at)gmail(dot)com>
Security: CVE-2026-14672
Backpatch-through: 16
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/4d192fa168cf43c6431bf96941d8c709bb92bf5d
Author: Nathan Bossart <nathan(at)postgresql(dot)org>
Modified Files
--------------
doc/src/sgml/config.sgml | 13 +++++++++++++
src/backend/libpq/auth-scram.c | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2026-08-10 13:41:23 | pgsql: Check for USAGE privilege on the subtype in CREATE TYPE AS RANGE |
| Previous Message | Noah Misch | 2026-08-10 13:41:21 | pgsql: Guard against overlength time zone abbreviations in to_char(). |