Vulnerability record · CVE-2006-1542 · published 30 March 2006
CVE-2006-1542: Python vulnerability
Python · Python
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.
Description
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.
AV:L/AC:H/Au:N/C:P/I:P/A:P
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://secunia.com/advisories/31492 | Broken Link |
| http://www.gotfault.net/research/exploit/gexp-python.py | Exploit |
| http://www.redhat.com/support/errata/RHSA-2008-0629.html | Third Party Advisory |
| https://www.exploit-db.com/exploits/1591 | Third Party AdvisoryVDB Entry |
| http://secunia.com/advisories/31492 | Broken Link |
| http://www.gotfault.net/research/exploit/gexp-python.py | Exploit |
| http://www.redhat.com/support/errata/RHSA-2008-0629.html | Third Party Advisory |
| https://www.exploit-db.com/exploits/1591 | Third Party AdvisoryVDB Entry |
Track CVE-2006-1542 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2006-1542), CISA KEV, FIRST EPSS (scores of 2026-11-14). This page is refreshed as NVD updates the record.