pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: In security-restricted operations, block enqueue of at-commit us 7+ messages / 1 participants [nested] [flat]
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0c3185e963d9f9dd0608214f7d732b84aa0888fe Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/43ebfea5a988582e9edc752cb1e22e929edac03b Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ac8f6243cb002f3386322fb231a0c5daa637941d Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f97ecea1ed7b09c6f1398540a1d72a57eee70c9f Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/aefc625dedae52073e7d279feb43f6255f992ea7 Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c90c84b3f797a54a40ebc6795fbd743bdf44adad Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: In security-restricted operations, block enqueue of at-commit us @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org In security-restricted operations, block enqueue of at-commit user code. Specifically, this blocks DECLARE ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries. 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. One can work around the vulnerability by disabling autovacuum and not manually running ANALYZE, CLUSTER, REINDEX, CREATE INDEX, VACUUM FULL, or REFRESH MATERIALIZED VIEW. (Don't restore from pg_dump, since it runs some of those commands.) Plain VACUUM (without FULL) is safe, and all commands are fine when a trusted user owns the target object. Performance may degrade quickly under this workaround, however. Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Etienne Stalmans. Security: CVE-2020-25695 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ff3de4c21a462f2da773848c53faedac88d6e54d Modified Files -------------- contrib/postgres_fdw/connection.c | 4 +++ src/backend/access/transam/xact.c | 13 +++++----- src/backend/commands/portalcmds.c | 5 ++++ src/backend/commands/trigger.c | 12 +++++++++ src/test/regress/expected/privileges.out | 42 ++++++++++++++++++++++++++++++++ src/test/regress/sql/privileges.sql | 34 ++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-11-09 15:35 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: In security-restricted operations, block enqueue of at-commit us 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