EnterpriseDB Advanced Server 8.2 does not properly handle certain debugging function calls that occur before a call to pldbg_create_listener, which allows remote authenticated users to cause a denial of service (daemon crash) and possibly execute arbitrary code via a SELECT statement that invokes a pldbg_ function, as demonstrated by (1) pldbg_get_stack and (2) pldbg_abort_target, which triggers use of an uninitialized pointer.
https://exchange.xforce.ibmcloud.com/vulnerabilities/36328
https://euvd.enisa.europa.eu/vulnerability/EUVD-2007-4621
http://www.vupen.com/english/advisories/2007/3040
http://www.securityfocus.com/bid/25481
http://www.securityfocus.com/archive/1/478057/100/0/threaded