EnterpriseDB Postgres Enterprise Manager privilege escalation via agent role file access
Affects Postgres Enterprise Manager 10.5.0 up to but not including 10.6.1, where the pem_agent role holds file read and write roles on the backend database. Fixed in 10.6.1.
- Exploited
- No known exploitation
- Fix
- Fixed in 10.6.1
- Who is exposed
- Specific setups only
Summary
EnterpriseDB's Postgres Enterprise Manager gives its agent role file read and write access on the PEM server, so an attacker who controls any monitored host can read and write files on the server as the postgres operating system user. This is reachable over the network by someone with high-privilege login access, and it exposes the certificate authority key, which lets the attacker issue certificates for other agents and act as them.
Written by a model
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.
Who should check
Teams running EDB Postgres Enterprise Manager (PEM) 10.5.0 up to before 10.6.1 to monitor hosts, including the PEM server and its PostgreSQL backend database.
Not fixed by: Upgrading does not undo earlier use of the file access; reissue the CA and agent certificates if a host was compromised.
“Affected Versions: PEM 10.5.0 and later versions prior to PEM 10.6.1”
What to do
Check whether your setup matches what the bug needs.
Postgres Enterprise Manager (PEM) version 10.5.0 or later, prior to 10.6.1 The pem_agent role, inherited by every PEM agent login, is a member of pg_read_server_files and pg_write_server_files on the PEM backend database Attacker controls a monitored host and its PEM agent certificateUpgrade to a fixed version: 10.6.1.
Workaround: Until upgrading, protect the PEM agent certificate and key on every monitored host, and limit root access to monitored hosts to trusted administrators.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-132658 (In Postgres Enterprise Manager (PEM), the pem_agent role, which every PEM agent login inherits, is a member of the PostgreSQL…), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-132658 (entry last updated 2026-11-21):
Affected:
- EnterpriseDB Postgres Enterprise Manager: from 10.5.0, fixed in 10.6.1
Fixed versions: 10.6.1.
Conditions (all must be true for the bug to be hit):
- Postgres Enterprise Manager (PEM) version 10.5.0 or later, prior to 10.6.1 (source: https://www.enterprisedb.com/docs/security/advisories/cve2026132658/)
- The pem_agent role, inherited by every PEM agent login, is a member of pg_read_server_files and pg_write_server_files on the PEM backend database (source: https://www.enterprisedb.com/docs/security/advisories/cve2026132658/)
- Attacker controls a monitored host and its PEM agent certificate (source: https://www.enterprisedb.com/docs/security/advisories/cve2026132658/)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, high-privilege login, no user action.
Workaround: Until upgrading, protect the PEM agent certificate and key on every monitored host, and limit root access to monitored hosts to trusted administrators. (source: https://www.enterprisedb.com/docs/security/advisories/cve2026132658/)
CISA KEV: CVE-2026-132658 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-132658 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://www.enterprisedb.com/docs/security/advisories/cve2026132658/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-132658
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-132658"}.Affected versions
- EnterpriseDB Postgres Enterprise ManagerFrom 10.5.0 · fixed in 10.6.1
cve.now Index
- Exploitation0/40No signal
- Exposure8/25Specific setups only, reachable over the network
- Reach17/20Affects PostgreSQL (a widely deployed server, runtime, framework or database)
- Severity10/10CVSS 9.4, total technical impact per CISA
- No patch0/5No signal
What would change the score
- Would score about 85 if added to CISA KEV
- Would score about 80 if CISA's SSVC rates exploitation active
- Would score about 42 if CISA's SSVC rates it automatable
Timeline
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- CVE published
- First seen by cve.now
- Posted on X by cve.now1 day
- Record last updated
Public exploit activity
- GitHub PoC repos: 1
- EPSS: 0.25%
- Posted on X by cve.now Nov 20
Since disclosure: the repos PoC-in-GitHub lists and FIRST's daily EPSS score.
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Link | enterprisedb.com · docs/security/advisories/cve2026132658 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-132658 |
| Record | NVD · CVE-2026-132658 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · cveForge/CVE-2026-132658 · Repository |
Questions about CVE-2026-132658
Is CVE-2026-132658 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Every PEM agent login inherits the pem_agent role, which can read and write files on the PEM backend database server. An attacker who controls a monitored host and its agent certificate can read and write files on the PEM server host as the postgres OS user. That includes the PEM certificate authority key, which lets the attacker issue certificates for other agents and act as them.
Source: enterprisedb.com
Which versions are affected by CVE-2026-132658?
Postgres Enterprise Manager: from 10.5.0 before 10.6.1.
Source: cve.now feed data
Am I affected, and how do I check?
PEM 10.5.0 and later versions prior to 10.6.1 are affected. Check the installed PEM version against that range. The issue involves the pem_agent role being a member of pg_read_server_files and pg_write_server_files on the PEM backend database.
Source: enterprisedb.com
How do I fix CVE-2026-132658?
Upgrade to PEM 10.6.1 or later, where PEM agents no longer hold these roles. Until upgrading, protect the PEM agent certificate and key on every monitored host, and limit root access to monitored hosts to trusted administrators.
Source: enterprisedb.com
Related
- CVE-2026-132660In Postgres Enterprise Manager (PEM), several SECURITY DEFINER functions in the pem schema of the PEM backend database are owned by a…
- CVE-2026-132659In Postgres Enterprise Manager (PEM), the row-level security policies on pem.job and pem.jobstep that apply to PEM agents do not limit an…
- CVE-2026-132661In Postgres Enterprise Manager (PEM), multi-factor authentication (MFA) is not enforced on the PEM web application's own routes.
- CVE-2026-132662In Postgres Enterprise Manager (PEM), the SQL Profiler save and load functions in the PEM web application do not keep the client-supplied…
- CVE-2026-132663In Postgres Enterprise Manager (PEM), webhook URLs are not validated, and the PEM agent does not restrict the URL schemes it uses to…
- CVE-2026-132664In Postgres Enterprise Manager (PEM), any PEM user can read the encrypted passwords that PEM agents use to connect to monitored servers…
No corrections so far. Something wrong on this page? Report an error.