diff options
author | Noah Misch <noah@leadboat.com> | 2022-05-09 08:35:08 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2022-05-09 08:35:13 -0700 |
commit | ef792f7856dea2576dcd9cab92b2b05fe955696b (patch) | |
tree | 7c8457c05a7451290c9845fd21df91845534f8f8 /src/backend/utils/adt/timestamp.c | |
parent | b05f4ae1fc2460b76b37118f3b435c60d01280cf (diff) | |
download | postgresql-ef792f7856dea2576dcd9cab92b2b05fe955696b.tar.gz postgresql-ef792f7856dea2576dcd9cab92b2b05fe955696b.zip |
Make relation-enumerating operations be security-restricted operations.
When a feature enumerates relations and runs functions associated with
all found relations, the feature's user shall not need to trust every
user having permission to create objects. BRIN-specific functionality
in autovacuum neglected to account for this, as did pg_amcheck and
CLUSTER. An attacker having permission to create non-temp objects in at
least one schema could execute arbitrary SQL functions under the
identity of the bootstrap superuser. CREATE INDEX (not a
relation-enumerating operation) and REINDEX protected themselves too
late. This change extends to the non-enumerating amcheck interface.
Back-patch to v10 (all supported versions).
Sergey Shinderuk, reviewed (in earlier versions) by Alexander Lakhin.
Reported by Alexander Lakhin.
Security: CVE-2022-1552
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
0 files changed, 0 insertions, 0 deletions