A type confusion vulnerability in PostgreSQL statistics import allows a table maintainer to execute arbitrary code as the operating system user running the database. This occurs via nested SET DATA TYPE during conversion of values to import. The issue affects PostgreSQL major version 18, specifically versions before 18.7. Versions prior to 18 are not affected. A fix is available in PostgreSQL 18.7.