PostgreSQL cursor buffer overflow
| postgresql-cursor-bo (19188) |
Description:
PostgreSQL is vulnerable to a buffer overflow, caused by improper bounds checking when the plpgsql cursor contains too many parameters. By declaring a large amount of PL/pgSQL cursor variables, a remote attacker could overflow a buffer.
Consequences:
Other
Remedy:
Upgrade to the latest version of PostgreSQL (7.2.7, 7.3.9, 7.4.7, or 8.0.1 or later), available from the PostgreSQL FTP Web page. See References.
For Debian GNU/Linux 3.0 (woody):
Upgrade to the latest version of postgresql (7.2.1-2woody8 or later), as listed in DSA-683-1. See References.
For Red Hat Linux:
Upgrade to the latest postgresql package, as listed below. Refer to RHSA-2005:138-15, RHSA-2005:141-06, or RHSA-2005:150-04 for more information. See References.
For Conectiva Linux:
Upgrade to the latest Postgresql package, as listed below. Refer to Conectiva Linux Announcement CLSA-2005:1008 for more information. See References.
Conectiva Linux 10.0: 7.4.2-57056U10_1cl or later
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2005-02-08 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- CIAC Information Bulletin: P-139: PostgreSQL Vulnerabilities.
- Conectiva Linux Security Announcement CLSA-2005:1008: Fix for several PostgreSQL vulnerabilities.
- PostgreSQL FTP Web page: FTP Browser.
- SGI Security Advisory 20050207-01-U: SGI Advanced Linux Environment 3 Security Update #27.
- BID-12417: PostgreSQL Multiple Remote Vulnerabilities
- CVE-2005-0245: 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.
- DSA-683: postgresql -- buffer overflows
- GLSA-200502-08: PostgreSQL: Multiple vulnerabilities
- MDKSA-2005:040: Updated PostgreSQL packages fix multiple vulnerabilities
- RHSA-2005-138: postgresql security update
- RHSA-2005-141: rh-postgresql security update
- RHSA-2005-150: postgresql security update
- SA12948: PostgreSQL Multiple Vulnerabilities
- SUSE-SA:2005:036: sudo: race condition arbitrary code execution
- SUSE-SR:2005:005: SUSE Security Summary Report
- SUSE-SR:2005:006: SUSE Security Summary Report
- SUSE-SR:2005:007: SUSE Security Summary Report
Platforms Affected:
- Canonical Ubuntu 4.10
- Conectiva Linux 10
- Debian Debian Linux 3.0
- Gentoo Linux
- MandrakeSoft Mandrake Linux 10.0
- MandrakeSoft Mandrake Linux 10.0 AMD64
- MandrakeSoft Mandrake Linux 10.1 X86_64
- MandrakeSoft Mandrake Linux 10.1
- MandrakeSoft Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 2.1
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- PostgreSQL PostgreSQL 7.2
- PostgreSQL PostgreSQL 7.2.1
- PostgreSQL PostgreSQL 7.2.2
- PostgreSQL PostgreSQL 7.2.3
- PostgreSQL PostgreSQL 7.2.4
- PostgreSQL PostgreSQL 7.2.5
- PostgreSQL PostgreSQL 7.2.6
- PostgreSQL PostgreSQL 7.2.7
- PostgreSQL PostgreSQL 7.3
- PostgreSQL PostgreSQL 7.3.1
- PostgreSQL PostgreSQL 7.3.2
- PostgreSQL PostgreSQL 7.3.3
- PostgreSQL PostgreSQL 7.3.4
- PostgreSQL PostgreSQL 7.3.5
- PostgreSQL PostgreSQL 7.3.6
- PostgreSQL PostgreSQL 7.3.7
- PostgreSQL PostgreSQL 7.3.8
- PostgreSQL PostgreSQL 7.3.9
- PostgreSQL PostgreSQL 7.4
- PostgreSQL PostgreSQL 7.4.1
- PostgreSQL PostgreSQL 7.4.2
- PostgreSQL PostgreSQL 7.4.3
- PostgreSQL PostgreSQL 7.4.4
- PostgreSQL PostgreSQL 7.4.5
- PostgreSQL PostgreSQL 7.4.6
- PostgreSQL PostgreSQL 7.4.7
- PostgreSQL PostgreSQL 8.0
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 3 WS
- RedHat Enterprise Linux 3 AS
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux Desktop 4.0
- RedHat Linux Advanced Workstation 2.1 Itanium
- SUSE SuSE Linux 8.2
- SUSE SuSE Linux 9.0
- SUSE SuSE Linux 9.1
- SUSE SuSE Linux 9.2
- SUSE SuSE Linux 9.3
- Turbolinux Turbolinux 10 Desktop
- Turbolinux Turbolinux 10 F...
- Turbolinux Turbolinux 10 Server
- Turbolinux Turbolinux 7 Server
- Turbolinux Turbolinux 7 Workstation
- Turbolinux Turbolinux 8 Server
- Turbolinux Turbolinux 8 Workstation
- Turbolinux Turbolinux Home
- Turbolinux Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux Turbolinux Appliance Server 1.0 Workgroup Ed
Reported:
Feb 01, 2005
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
