A use-after-free vulnerability in PostgreSQL trigger functions involving cursors over transition tables allows an object creator to execute arbitrary code with the privileges of the operating system user running the database. This affects multiple PostgreSQL versions prior to 14.25, 15.20, 16.16, 17.12, and 18.7. The vulnerability is classified as high severity and has been fixed in the stated versions.