# CVE-2026-96538: WarehousePG pg_file_write/pg_file_rename/pg_file_unlink/pg_logdir_ls privilege escalation

- Severity: High 8.7 (CVSS:4.0, scored by EDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-09-28T14:41:15.747Z
- Modified: 2026-09-30T19:57:08.043Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: EDB

## Description

WarehousePG (WHPG) 7.x before 7.6.0-WHPG is affected by a missing authorization vulnerability (CWE-862) in the built-in server-side file functions pg_file_write(text,text,bool), pg_file_rename(text,text,text), pg_file_unlink(text), and pg_logdir_ls(). These functions are executable by any authenticated database role with no GRANT required, because the REVOKE that contrib/adminpack applies to the equivalent functions was never carried over to WHPG core when their catalog entries were repointed to the ungated adminpack-derived implementations as part of Greenplum's merge to a PostgreSQL 12 base. A non-superuser can use pg_file_write, pg_file_rename, and pg_file_unlink to create, overwrite (append), rename, and delete files under the data and log directories, and can use pg_logdir_ls() to enumerate log file names. Because postgresql.auto.conf resides in the data directory, a non-superuser can append configuration directives such as shared_preload_libraries or archive_command to it, resulting in arbitrary code execution as the postgres operating system user on the next server restart or configuration reload. WarehousePG 6.x is not affected, as the equivalent functions there enforce a superuser check internally.

(As written by CVE List.)

## Affected

- EnterpriseDB WarehousePG: from 7.0.0 before 7.6.0-WHPG

## References

- <https://github.com/warehouse-pg/warehouse-pg/pull/305>
- <https://www.enterprisedb.com/docs/security/advisories/cve202696538>

## Sources

- CVE List: [CVE-2026-96538](https://www.cve.org/CVERecord?id=CVE-2026-96538), CVE Terms of Use, modified 2026-09-28
- NVD: [CVE-2026-96538](https://nvd.nist.gov/vuln/detail/CVE-2026-96538), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-96538 · Whole record: https://cve.day/CVE-2026-96538.json · Rebuilt by cve.day 2026-11-25T22:59:41.345Z
