PostgreSQL 8.0.0 and earlier allows local users to bypass the EXECUTE permission check for functions by using the CREATE AGGREGATE command.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10927
https://exchange.xforce.ibmcloud.com/vulnerabilities/19184
http://www.securityfocus.com/bid/12417
http://www.redhat.com/support/errata/RHSA-2005-138.html
http://www.novell.com/linux/security/advisories/2005_36_sudo.html
http://www.mandriva.com/security/advisories?name=MDKSA-2005:040
http://secunia.com/advisories/12948
http://marc.info/?l=bugtraq&m=110806034116082&w=2
http://archives.postgresql.org/pgsql-hackers/2005-01/msg00922.php