In Postgres Enterprise Manager (PEM), the pem_agent role, which every PEM agent login inherits, is a member of the Po…
EnterpriseDB Postgres Enterprise Manager
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| EnterpriseDB Postgres Enterprise Manager |
| No fix yet |
Original description
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.
From the CVE record · EDB