Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating system user running the database, via reentrant return_next() calls. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Attacker has permission to "CREATE EXTENSION plperl", or another user previously issued that. Attacker has permission to create objects (temporary objects or non-temporary objects in at least one schema).