CVE-2026-132660: PEM backend SECURITY DEFINER search_path flaw allows superuser SQL
CVE-2026-132660 lets any PostgreSQL Enterprise Manager (PEM) user with access to the PEM backend database escalate to superuser via insecure search_path in SECURITY DEFINER functions. Fixed in PEM 10.6.1.
Overview
CVE-2026-132660 affects Postgres Enterprise Manager (PEM). Several SECURITY DEFINER functions in the pem schema of the PEM backend database are owned by a superuser but do not set a safe search_path.
Any PEM user who can connect to the PEM backend database can create objects that these functions use in place of the intended ones, and therefore run arbitrary SQL with superuser privileges.
Affected configurations
- Temporary objects can be used for this exploit on every supported PostgreSQL version. - Objects in the public schema can be used on PostgreSQL 14 backends and backends upgraded from PostgreSQL 14.
Fix
From PEM 10.6.1, these functions run with a fixed search_path.
Sources
- NVD entry - EnterpriseDB advisory
What to do
1. Confirm whether you run Postgres Enterprise Manager with PEM backend database users beyond the required administrative accounts. 2. Upgrade PEM to version 10.6.1 or later after reviewing the vendor advisory and testing in a non-production environment. 3. If an immediate upgrade is not possible, restrict and audit connections to the PEM backend database, and review objects in public or temporary schemas that could be used to hijack SECURITY DEFINER functions. 4. Check the vendor advisory for any additional required remediation steps before changing production systems. 5. Audit database logs and object ownership for signs of exploitation, especially attempts to create objects in schemas used by pem functions.