A type confusion vulnerability in PostgreSQL anonymous RECORD types allows an attacker who can create objects to execute arbitrary code as the operating system user running the database. This occurs due to row types having dropped attributes in the same positions but with different widths or alignments. The issue affects PostgreSQL major versions 17 and 18, specifically versions before 17.12.0 and 18.7.0. Versions prior to 17 are not affected.