A time-of-check time-of-use (TOCTOU) race condition vulnerability exists in the pg_dump utility of PostgreSQL versions prior to 16.4-r0. This flaw allows an object creator to execute arbitrary SQL functions with the privileges of the user running pg_dump, which is often a superuser. The vulnerability is rated high severity with a CVSS score of 7.5. A fix is available in PostgreSQL version 16.4-r0.