A vulnerability in PostgreSQL's pg_restore utility allows arbitrary code execution due to improper input validation of non-plain archive formats. This flaw enables an attacker to execute code as the operating system user running pg_restore by supplying a crafted archive. The issue affects multiple PostgreSQL versions prior to their respective fixed releases.