---
id: CVE-2026-132658
title: >-
  In Postgres Enterprise Manager (PEM), the pem_agent role, which every PEM
  agent login inherits, is a member of the PostgreSQL pg_read_server_files and
  pg_write_server_files roles on the PEM backend database
summary: >-
  In Postgres Enterprise Manager (PEM), the pem_agent role, which every PEM
  agent login inherits, is a member of the PostgreSQL pg_read_server_files and
  pg_write_server_files roles on the PEM backend database. An attacker who
  controls any …
severity: critical
cwe:
  - CWE-269
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-132658'
references:
  - url: 'https://www.enterprisedb.com/docs/security/advisories/cve2026132658/'
    label: 20be33e2-bf35-4d13-8fad-18bd2f3e3659
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00436
epssPercentile: 0.38357
ingestedAt: '2026-11-23T20:22:04.145Z'
vendor: EnterpriseDB
product: Postgres Enterprise Manager
affected:
  - postgres_enterprise_manager >= 10.5.0 < 10.6.1
cvss: 9.4
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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-132658'
  checkedAt: '2026-11-25T12:57:43.810Z'
exploitAvailable: true
---

## Overview

In Postgres Enterprise Manager (PEM), the pem_agent role, which every PEM agent login inherits, is a member of the PostgreSQL pg_read_server_files and pg_write_server_files roles on the PEM backend database. An attacker who controls any monitored host, and so 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 lets the attacker issue certificates for other agents and act as them.
From PEM 10.6.1, PEM agents no longer hold these roles.

## Remediation

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