The ALTER ... DEPENDS ON EXTENSION sub-commands do not perform authorization checks. If one of the following prerequisites holds, an unprivileged user can exploit this to drop any function, procedure, materialized view, index, or trigger. The attack is possible if an administrator has installed an extension that unprivileged users can CREATE. The attack is also possible if an extension owner issues DROP EXTENSION predictably or can be convinced to issue DROP EXTENSION.
PosgreSQL versions 9.5 and older are not affected by this issue beacuse they did not support the `ALTER THING .. DEPENDS ON EXTENSION` feature, which appeared in version 9.6.0.
Created mingw-postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812456] Created postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812457] Created postgresql:10/postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812460] Created postgresql:11/postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812461] Created postgresql:12/postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812462] Created postgresql:9.6/postgresql tracking bugs for this issue: Affects: fedora-all [bug 1812459]
Upstream fix (master branch) : https://github.com/postgres/postgres/commit/b048f558dd7c26a0c630a2cff29d3d8981eaf6b9
This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 7 Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS Via RHSA-2020:0980 https://access.redhat.com/errata/RHSA-2020:0980
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2020-1720
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2020:3669 https://access.redhat.com/errata/RHSA-2020:3669
This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 7 Via RHSA-2020:4295 https://access.redhat.com/errata/RHSA-2020:4295
This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 7 Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS Via RHSA-2020:5112 https://access.redhat.com/errata/RHSA-2020:5112
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2020:5619 https://access.redhat.com/errata/RHSA-2020:5619
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2020:5620 https://access.redhat.com/errata/RHSA-2020:5620
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions Via RHSA-2020:5661 https://access.redhat.com/errata/RHSA-2020:5661
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions Via RHSA-2020:5664 https://access.redhat.com/errata/RHSA-2020:5664
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Extended Update Support Via RHSA-2021:0163 https://access.redhat.com/errata/RHSA-2021:0163
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Extended Update Support Via RHSA-2021:0164 https://access.redhat.com/errata/RHSA-2021:0164
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.1 Extended Update Support Via RHSA-2021:0166 https://access.redhat.com/errata/RHSA-2021:0166
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.1 Extended Update Support Via RHSA-2021:0167 https://access.redhat.com/errata/RHSA-2021:0167