Horizon Alert
Summary of the vulnerability and why it matters
This vulnerability in Postgres Enterprise Manager (PEM) could allow an attacker who compromises a single monitored host to gain control over all other agents and the PEM server. This compromise could grant extensive access, including superuser SQL privileges to all monitored databases.
- Agents can control all other jobs.
- A single host compromise leads to widespread access.
- Confirm relevance and potential exposure.
Attack Path
How an attacker could exploit the issue
An attacker with control over a single monitored host, and thus its PEM agent certificate, can leverage a weakness in how row-level security policies are applied to job management. This allows the attacker to create, modify, or delete jobs across all other agents, including the one on the PEM server itself. Since agents execute job steps using the database credentials of the monitored server, this compromise can lead to superuser SQL access to all monitored databases and the PEM backend.
- Attacker controls a monitored host.
- Attacker manipulates jobs via compromised agent.
- Leads to superuser SQL access.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, an attacker controlling a PEM agent certificate could create, change, or delete jobs for any other agent, potentially leading to superuser SQL access to monitored databases and the PEM backend.
- Affected: Database and PEM backend access.
- Exposure: Agent certificate compromise.
- Consequence: Full database and backend control.
Operational Fix
Recommended remediation, mitigation, and detection steps
Attackers controlling a PEM agent certificate can compromise all monitored databases and the PEM backend by creating, changing, or deleting jobs. This advisory applies to technical leaders, security teams, and system owners responsible for Postgres Enterprise Manager deployments. The first practical step is to identify all PEM agent installations, confirm their network reachability, identify the accountable system owner, and then plan remediation based on the criticality of the monitored systems.
- Platform or Database Administration teams own this issue.
- Verify PEM agent network reachability and access.
- Plan remediation for critical monitored systems.