CVE-2026-132659: PEM job policy bypass lets compromised agent control all agents

Postgres Enterprise Manager row-level security policies on pem.job and pem.jobstep do not restrict PEM agents to their own jobs. An attacker controlling one monitored host can create, change, or delete jobs for every other agent, potentially gaining superuser SQL access to all monitored databases and the PEM backend.

Overview

CVE-2026-132659 affects Postgres Enterprise Manager (PEM). The row-level security policies on pem.job and pem.jobstep that apply to PEM agents do not limit an agent to its own jobs. Because an attacker who controls one monitored host also controls that host's PEM agent certificate, they can create, change, or delete jobs for every other agent, including the agent on the PEM server.

Agents run SQL job steps with the database credentials of the server they monitor, and shell job steps where batch jobs are enabled. This means compromising one monitored host can lead to superuser SQL access to every monitored database and to the PEM backend.

Fixed version

Per the vendor advisory, from PEM 10.6.1 PEM agents can no longer create jobs or change job definitions or job steps. Verify the exact fixed release and upgrade path in the vendor advisory before changing production.

What to do

1. Review the NVD entry and the EnterpriseDB advisory for CVE-2026-132659 to confirm affected versions and required actions. 2. Upgrade Postgres Enterprise Manager to PEM 10.6.1 or later (verify the latest supported release in the vendor advisory). 3. If an immediate upgrade is not possible, restrict or disable PEM agent job creation and batch/shell job execution on monitored hosts, and audit existing pem.job and pem.jobstep entries for unauthorized changes. 4. Treat any monitored host as a potential pivot: rotate database credentials and PEM agent certificates if compromise is suspected, and review SQL/shell job definitions for backdoors. 5. Monitor for unusual job activity across all PEM agents and databases, and follow vendor guidance before making production changes.

Sources

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-132659 - Vendor advisory: https://www.enterprisedb.com/docs/security/advisories/cve2026132659/

Sources