PT-2026-99913
CVE-2026-96538
·
Published
2026-09-28
·
Updated
2026-09-28
Description by
CVSS 4.0
8.7
HighMetricsAV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions
WarehousePG versions 7.x through 7.6.0-WHPG
Description
Missing authorization in built-in server-side file functions allows any authenticated database role to execute them without a GRANT. This occurs because the REVOKE applied to equivalent functions in contrib/adminpack was not carried over to the core during the merge to a PostgreSQL 12 base. A non-superuser can utilize the functions
pg file write(), pg file rename(), and pg file unlink() to create, overwrite, rename, and delete files within the data and log directories, and use pg logdir ls() to enumerate log file names. By appending configuration directives such as shared preload libraries or archive command to the postgresql.auto.conf file located in the data directory, an attacker can achieve arbitrary code execution as the postgres operating system user upon the next server restart or configuration reload.Recommendations
Update WarehousePG to version 7.6.0-WHPG or later.
As a temporary workaround, restrict access to the functions
pg file write(), pg file rename(), pg file unlink(), and pg logdir ls() to prevent unauthorized file manipulation. Found an issue in the description? Have something to add? Feel free to write us 👾