#VU111739 Heap-based buffer overflow in PostgreSQL - CVE-2005-0245


Vulnerability identifier: #VU111739

Vulnerability risk: Medium

CVSSv4.0: 7.4 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Green]

CVE-ID: CVE-2005-0245

CWE-ID: CWE-122

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
PostgreSQL
Server applications / Database software

Vendor: 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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PostgreSQL: 7.2, 7.2.1 - 7.4.3, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.3, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.3.6, 7.3.7, 7.3.8, 7.4, 7.4.4, 7.4.5, 7.4.6, 8.0.0


External links
https://archives.postgresql.org/pgsql-patches/2005-01/msg00216.php
https://archives.postgresql.org/pgsql-committers/2005-01/msg00298.php
https://archives.postgresql.org/pgsql-committers/2005-02/msg00049.php
https://www.debian.org/security/2005/dsa-683
https://www.redhat.com/support/errata/RHSA-2005-138.html
https://www.redhat.com/support/errata/RHSA-2005-150.html
https://secunia.com/advisories/12948
https://www.novell.com/linux/security/advisories/2005_36_sudo.html
https://www.securityfocus.com/bid/12417
https://www.mandriva.com/security/advisories?name=MDKSA-2005:040
https://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


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability