CVE-2026-132662: Postgres Enterprise Manager SQL Profiler path traversal / file overwrite
Postgres Enterprise Manager (PEM) before 10.6.1 does not keep SQL Profiler save/load filenames inside the user's storage directory. A user with the SQL Profiler role (pem_comp_sqlprofiler) can read JSON files and overwrite files writable by the PEM web server account outside their own storage directory, including the PEM web application's configuration database, which stops the web console for all users. Fixed in PEM 10.6.1.
Overview
CVE-2026-132662 affects Postgres Enterprise Manager (PEM). In the PEM web application, the SQL Profiler save and load functions do not keep the client-supplied file name inside the user's storage directory. A user with the SQL Profiler role (pem_comp_sqlprofiler) can read JSON files and overwrite files that the PEM web server account can write, outside their own storage directory. Overwriting the PEM web application's configuration database stops the web console for all users.
From PEM 10.6.1, the SQL Profiler only reads and writes files inside the user's storage directory.
What to do
1. Review the vendor advisory and NVD entry for CVE-2026-132662 before making changes: https://www.enterprisedb.com/docs/security/advisories/cve2026132662/ and https://nvd.nist.gov/vuln/detail/CVE-2026-132662 2. Upgrade Postgres Enterprise Manager to 10.6.1 or later, which contains the fix for this issue. 3. If an immediate upgrade is not possible, restrict or remove the pem_comp_sqlprofiler role from users who do not absolutely require SQL Profiler functionality. 4. Audit existing SQL Profiler save/load activity and check for unexpected file reads or writes outside the intended storage directory. 5. Verify the vendor advisory for any additional mitigations or prerequisites before applying the patch in production.