Skip to content
OpenAdvisories
Unscored Public exploit CVE-2005-0245 EUVD-2005-0246GHSA-8r34-wff9-3x69

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…

Published Feb 8, 2005 · Updated Aug 7, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 3.0 postgresql 7.2.1-2woody8 DSA-683-1
ReleasePackageFixed inAdvisory
RHEL 4 postgresql +10 7.4.7-2.RHEL4.1 RHSA-2005:138
RHEL 3 rh-postgresql +10 7.3.9-2 RHSA-2005:141

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References