Buffer overflow in gram.y for PostgreSQL 8.0.0 and earlier may allow attackers to execute arbitrary code via a large number of arguments to a refcursor function (gram.y), which leads to a heap-based buffer overflow, a different vulnerability than CVE-2005-0247.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175
https://exchange.xforce.ibmcloud.com/vulnerabilities/19188
https://euvd.enisa.europa.eu/vulnerability/EUVD-2005-0246
http://www.redhat.com/support/errata/RHSA-2005-150.html
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://www.debian.org/security/2005/dsa-683
http://secunia.com/advisories/12948
http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php
http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php