---
id: CVE-2026-132665
title: >-
  In Postgres Enterprise Manager (PEM), the pem.deploy_job_template() function
  does not check that the caller can access the servers, groups and agents it
  deploys a job template to
summary: >-
  In Postgres Enterprise Manager (PEM), the pem.deploy_job_template() function
  does not check that the caller can access the servers, groups and agents it
  deploys a job template to. When PEM teams are used to separate access, a user
  with t…
severity: medium
cwe:
  - CWE-863
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-132665'
references:
  - url: 'https://www.enterprisedb.com/docs/security/advisories/cve2026132665/'
    label: 20be33e2-bf35-4d13-8fad-18bd2f3e3659
tags:
  - nvd
  - cve.org
epss: 0.00474
epssPercentile: 0.41537
ingestedAt: '2026-11-23T20:22:04.148Z'
vendor: EnterpriseDB
product: Postgres Enterprise Manager
affected:
  - postgres_enterprise_manager >= 10.6.0 < 10.6.1
cvss: 5.8
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-20T15:57:31.541666Z'
cvssSource: cna
---

## Overview

In Postgres Enterprise Manager (PEM), the pem.deploy_job_template() function does not check that the caller can access the servers, groups and agents it deploys a job template to. When PEM teams are used to separate access, a user with the scheduled tasks role (pem_manage_schedule_task) can deploy and schedule SQL or shell job steps on agents that belong to other teams.
From PEM 10.6.1, PEM checks team access for every server, group and agent a template is deployed to.

## Remediation

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