CVE-2026-132658: PEM agent role can read/write PEM server files and impersonate agents

Postgres Enterprise Manager (PEM) before 10.6.1 lets PEM agent logins read and write files on the PEM server host as the postgres OS user, including the PEM CA key, enabling agent impersonation.

CVE-2026-132658 affects Postgres Enterprise Manager (PEM). The pem_agent role, inherited by every PEM agent login, is a member of the pg_read_server_files and pg_write_server_files roles on the PEM backend database. An attacker who controls any monitored host, and therefore its PEM agent certificate, can read and write files on the PEM server host as the postgres operating system user. This includes the PEM certificate authority key, which would allow the attacker to issue certificates for other agents and act as them. From PEM 10.6.1, PEM agents no longer hold these roles.

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

What to do 1. Confirm your PEM version. If it is before 10.6.1, you are affected by CVE-2026-132658. 2. Upgrade Postgres Enterprise Manager to PEM 10.6.1 or later, where PEM agents no longer inherit the pg_read_server_files and pg_write_server_files roles on the PEM backend database. 3. Review the vendor advisory and NVD entry for any additional mitigations or patch instructions. 4. Treat PEM agent certificates from monitored hosts as sensitive; after upgrading, rotate or reissue agent certificates if there is any chance the PEM CA key was exposed. 5. If you cannot upgrade immediately, verify with the vendor whether interim mitigations exist before changing production.

Sources