A use-after-free vulnerability exists in the PostgreSQL pltcl extension that allows an object creator to execute arbitrary code as the operating system user running the database. This occurs via a domain CHECK that re-enters the Tcl interpreter and manipulates a string still in use by the outer result conversion. Versions before PostgreSQL 14.25, 15.20, 16.16, 17.12, and 18.7 are affected.