Skip to content
OpenAdvisories
Unscored CVE-2005-0247 EUVD-2005-0248GHSA-ggh8-6p3g-2rw7

Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to execute arbitrary code via (1) a large number o…

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

Description

Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to execute arbitrary code via (1) a large number of variables in a SQL statement being handled by the read_sql_construct function, (2) a large number of INTO variables in a SELECT statement being handled by the make_select_stmt function, (3) a large number of arbitrary variables in a SELECT statement being handled by the make_select_stmt function, and (4) a large number of INTO variables in a FETCH statement being handled by the make_fetch_stmt function, a different set of vulnerabilities than CVE-2005-0245.

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

Advisories 3

References