In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade RHEL:8 postgresql:12/postgresql-test to version 0:12.5-1.module+el8.2.0+9043+1dbb5661 or higher.
This issue was patched in RHSA-2021:0163.
Note: Versions mentioned in the description apply only to the upstream postgresql:12/postgresql-test package and not the postgresql:12/postgresql-test package as distributed by RHEL.
See How to fix? for RHEL:8 relevant fixed versions and status.
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.