#VU111739 Heap-based buffer overflow in PostgreSQL - CVE-2005-0245
Published: June 21, 2025
PostgreSQL
PostgreSQL Global Development Group
Description
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error. A remote user can pass a large number of arguments to a refcursor function (gram.y), trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
External links
- http://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php
- http://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php
- http://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
- http://www.debian.org/security/2005/dsa-683
- http://www.redhat.com/support/errata/RHSA-2005-138.html
- http://www.redhat.com/support/errata/RHSA-2005-150.html
- http://secunia.com/advisories/12948
- http://www.novell.com/linux/security/advisories/2005_36_sudo.html
- http://www.securityfocus.com/bid/12417
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:040
- http://marc.info/?l=bugtraq&m=110806034116082&w=2
- https://exchange.xforce.ibmcloud.com/vulnerabilities/19188
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10175