It was found that some PostgreSQL extensions did not use search_path safely in their installation script. An attacker with sufficient privileges could use this flaw to trick an administrator into executing a specially crafted script, during the installation or update of such extension. This affects PostgreSQL versions before 12.4, before 11.9, before 10.14, before 9.6.19, and before 9.5.23.
https://usn.ubuntu.com/4472-1/
https://security.netapp.com/advisory/ntap-20200918-0002/
https://security.gentoo.org/glsa/202008-13
https://lists.debian.org/debian-lts-announce/2020/08/msg00028.html
https://bugzilla.redhat.com/show_bug.cgi?id=1865746
http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00008.html
http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00003.html
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00050.html
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00049.html
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00044.html
http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00043.html