A missing authorization check in PostgreSQL's REASSIGN OWNED command allows roles granted INHERIT but not SET to transfer objects to the granted role. Additionally, it permits reassignment of database ownership without requiring the CREATEDB privilege. These actions are normally blocked by equivalent ALTER ... OWNER commands. This vulnerability affects PostgreSQL versions before 14.25, 15.20, 16.16, 17.12, and 18.7.