PostgreSQL path_encode() Buffer Overflow Vulnerability

BID:6610

Info

PostgreSQL path_encode() Buffer Overflow Vulnerability

Bugtraq ID: 6610
Class: Boundary Condition Error
CVE: CVE-2002-1401
Remote: No
Local: Yes
Published: Aug 28 2002 12:00AM
Updated: Jul 11 2009 07:17PM
Credit: The discovery of this vulnerability has been credited to Sir Mordred The Traitor <[email protected]>.
Vulnerable: PostgreSQL PostgreSQL 7.2.3
PostgreSQL PostgreSQL 7.2.2
+ Mandriva Linux Mandrake 9.0
+ Turbolinux Turbolinux Server 8.0
+ Turbolinux Turbolinux Server 7.0
+ Turbolinux Turbolinux Workstation 8.0
PostgreSQL PostgreSQL 7.2.1
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Gentoo Linux 0.7
+ Gentoo Linux 0.5
PostgreSQL PostgreSQL 7.2
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
+ SuSE Linux 8.0 i386
+ SuSE Linux 8.0
PostgreSQL PostgreSQL 7.1.3
+ Redhat Linux 7.2
+ SuSE Linux 7.3 sparc
+ SuSE Linux 7.3 ppc
+ SuSE Linux 7.3 i386
+ SuSE Linux 7.3
+ Trustix Secure Linux 1.5
+ Trustix Secure Linux 1.2
+ Trustix Secure Linux 1.1
PostgreSQL PostgreSQL 7.1.2
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
PostgreSQL PostgreSQL 7.1.1
PostgreSQL PostgreSQL 7.1
PostgreSQL PostgreSQL 7.0.3
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
+ SuSE Linux 7.1 x86
+ SuSE Linux 7.1 sparc
+ SuSE Linux 7.1 ppc
+ SuSE Linux 7.1 alpha
+ SuSE Linux 7.1
PostgreSQL PostgreSQL 7.0.2
+ MandrakeSoft Single Network Firewall 7.2
+ Mandriva Linux Mandrake 7.2
+ Wirex Immunix OS 7.0
+ Wirex Immunix OS 7+
PostgreSQL PostgreSQL 6.5.3
+ Wirex Immunix OS 6.2
PostgreSQL PostgreSQL 6.3.2
Not Vulnerable:

Discussion

PostgreSQL path_encode() Buffer Overflow Vulnerability

A vulnerability has been discovered in PostgreSQL. A buffer overrun exists in the 'path_encode()' function which may allow an attacker to overwrite sensitive locations in memory. By exploiting this issue to overwrite an instruction pointer in the program, it may be possible for a remote attacker to execute arbitrary commands. All commands will be executed with the privileges of the database process.

Exploit / POC

PostgreSQL path_encode() Buffer Overflow Vulnerability

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] &lt;mailto:[email protected]&gt;.

Solution / Fix

PostgreSQL path_encode() Buffer Overflow Vulnerability

Solution:
The vendor has addressed this issue in the CVS repository.

Conectiva Linux has fixes available. Further information is available in the referenced advisory (CLA-2002:524).

Debian has released an advisory with fixes. See the attached advisory (DSA 165-1) for details on obtaining fixes.

Red Hat has released advisories (RHSA-2003:001-16 and RHSA-2003:010-10) which address this and other issues. Please see the attached advisories for details on obtaining and applying fixes.

Mandrake has made fixes available. See referenced advisory MDKSA-2002:062-1 for additional details.

Trustix Secure Linux has released an advisory (TSLSA-2003-0004) which addresses this and other PostgreSQL issues. Users are advised to upgrade as soon as possible.

WireX has released advisory IMNX-2003-7+-005-01 to address this issue.


PostgreSQL PostgreSQL 6.5.3

PostgreSQL PostgreSQL 7.0.2

PostgreSQL PostgreSQL 7.0.3

PostgreSQL PostgreSQL 7.1.3

PostgreSQL PostgreSQL 7.2

PostgreSQL PostgreSQL 7.2.1

PostgreSQL PostgreSQL 7.2.2

References

PostgreSQL path_encode() Buffer Overflow Vulnerability

References:

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report