CVE-2006-1542: Buffer Overflow

Published Mar 30, 2006
·
Updated

Common Vulnerabilities and Exposures assigned an identifier CVE-2006-1542 to the following vulnerability:

Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0.3 with libc 2.3.5, allows local users to cause a " stack overflow, " and possibly gain privileges, by running a script from a current working directory that has a long name, related to the realpath function. NOTE: this might not be a vulnerability. However, the fact that it appears in a programming language interpreter could mean that some applications are affected, although attack scenarios might be limited because the attacker might already need to cross privilege boundaries to cause an exploitable program to be placed in a directory with a long name; or, depending on the method that Python uses to determine the current working directory, setuid applications might be affected.

References:

http://milw0rm.com/exploits/1591 http://www.gotfault.net/research/exploit/gexp-python.py

Other sources

Stack-based buffer overflow in Python 2.4.2 and earlier, running on Linux 2.6.12.5 under gcc 4.0.3 with libc 2.3.5, allows local users to cause a "stack overflow," and possibly gain privileges, by running a script from a current working directory that has a long name, related to the realpath function. NOTE: this might not be a vulnerability. However, the fact that it appears in a programming language interpreter could mean that some applications are affected, although attack scenarios might be limited because the attacker might already need to cross privilege boundaries to cause an exploitable program to be placed in a directory with a long name; or, depending on the method that Python uses to determine the current working directory, setuid applications might be affected.

Affected Software

10 affected components
Python Software Foundation Python=2.2
Python Software Foundation Python<=2.4.2
Python Software Foundation Python=2.3.2
Python Software Foundation Python=2.3.3
Python Software Foundation Python=2.4
Python Software Foundation Python=2.3
Python Software Foundation Python=2.3.1
Python Software Foundation Python=2.3.4
Python Software Foundation Python=2.2.1
Python Python<=2.4.2

Event History

Mar 30, 2006
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Data Sourced
11:02 AM
DescriptionWeaknessAffected Software
Data Sourced
11:02 AM
Severity
Data Sourced
via NVD·11:02 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:00 PM
Jan 29, 2008
Data Sourced
via Red Hat·09:42 AM
DescriptionSeverityAffected Software
Oct 21, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2006-1542?

CVE-2006-1542 is classified as a high severity vulnerability due to the potential for local users to achieve privilege escalation.

2

How do I fix CVE-2006-1542?

To mitigate CVE-2006-1542, upgrade Python to version 2.5 or later, which addresses the buffer overflow issue.

3

Who is affected by CVE-2006-1542?

CVE-2006-1542 affects local users running Python versions 2.4.2 and earlier on Linux with specific configurations.

4

How does CVE-2006-1542 exploit occur?

CVE-2006-1542 exploits a stack-based buffer overflow when executing scripts from directories with excessively long names.

5

What systems are impacted by CVE-2006-1542?

CVE-2006-1542 impacts systems running Linux kernel 2.6.12.5 with gcc 4.0.3 and libc 2.3.5 when using affected versions of Python.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203