Python getaddrinfo Function Remote Buffer Overflow Vulnerability

BID:9836

Info

Python getaddrinfo Function Remote Buffer Overflow Vulnerability

Bugtraq ID: 9836
Class: Boundary Condition Error
CVE: CVE-2004-0150
Remote: Yes
Local: No
Published: Mar 10 2004 12:00AM
Updated: Jul 12 2009 03:06AM
Credit: The disclosure of this issue has been credited to Sebastian Schmidt.
Vulnerable: Python Software Foundation Python 2.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 1.4 _rc1
+ Gentoo Linux 1.2
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ Mandriva Linux Mandrake 9.0
+ OpenPKG OpenPKG 1.1
+ SuSE Linux 8.1
Python Software Foundation Python 2.2
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
Gentoo Linux 1.4 _rc3
Gentoo Linux 1.4 _rc2
Gentoo Linux 1.4 _rc1
Gentoo Linux 1.4
Gentoo Linux 1.2
Gentoo Linux 1.1 a
Gentoo Linux 0.7
Gentoo Linux 0.5
Not Vulnerable: Python Software Foundation Python 2.2.2
+ OpenPKG OpenPKG 1.2
+ OpenPKG OpenPKG 1.2
+ Redhat Linux 7.3
+ Redhat Linux 7.3
+ S.u.S.E. Linux Personal 8.2
+ S.u.S.E. Linux Personal 8.2

Discussion

Python getaddrinfo Function Remote Buffer Overflow Vulnerability

It has been reported that Python may be prone to a remote buffer overflow vulnerability that may allow an attacker to execute arbitrary code on a vulnerable system in order to gain unauthorized access. The issue exists due to insufficient boundary checks performed by the 'getaddrinfo' function and occurs when an IPv6 address of excessive length is sent to a vulnerable host via DNS.

It has been reported that this issue affects Python versions 2.2 and 2.2.1.

Due to a lack of information, further details cannot be outlined at the moment. This BID will be updated as more information becomes available.

Exploit / POC

Python getaddrinfo Function Remote 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] <mailto:[email protected]>.

Solution / Fix

Python getaddrinfo Function Remote Buffer Overflow Vulnerability

Solution:
Gentoo has released an advisory (GLSA 200409-03) and an updated eBuild to address this issue. Please see the referenced advisory for more information. Gentoo users can carry out the following commands to update their computer:

emerge sync
emerge -pv ">=dev-lang/python-2.2.2"
emerge ">=dev-lang/python-2.2.2"

Debian has released advisory DSA 458-1 to address this issue. Please see the referenced advisory for more information.

Debian has released advisory DSA 458-3 to address this issue. This fixes some reported problems with the fixes included in the original advisories. Please see the referenced advisory for further information.

Mandrake has released advisory MDKSA-2004:019 to address this issue. Please see the attached advisory for details on obtaining and applying fixes.

This issue has been addressed in Python 2.2.2 and later.


Python Software Foundation Python 2.2

Python Software Foundation Python 2.2.1

References

Python getaddrinfo Function Remote 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