---
id: CVE-2026-132660
title: >-
  In 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
summary: >-
  In 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 c…
severity: critical
cwe:
  - CWE-426
published: '2026-11-20'
updated: '2026-11-23'
sourceUpdated: '2026-11-23T16:24:48.897'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-132660'
references:
  - url: 'https://www.enterprisedb.com/docs/security/advisories/cve2026132660/'
    label: 20be33e2-bf35-4d13-8fad-18bd2f3e3659
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00536
epssPercentile: 0.45806
ingestedAt: '2026-11-23T20:22:04.146Z'
vendor: EnterpriseDB
product: Postgres Enterprise Manager
affected:
  - postgres_enterprise_manager >= 7.6.0 < 10.6.1
cvss: 9.4
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-20T00:00:00+00:00'
cvssSource: cna
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/cveForge/CVE-2026-132660'
  checkedAt: '2026-11-25T12:57:43.813Z'
exploitAvailable: true
---

## Overview

In 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 so run arbitrary SQL with superuser privileges. Temporary objects can be used for this on every supported PostgreSQL version, and objects in the public schema on PostgreSQL 14 backends and backends upgraded from PostgreSQL 14.
From PEM 10.6.1, these functions run with a fixed search_path.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
